We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MaskEdit time problem

Thread ID:





14728 Jun 3,2004 08:03 AM UTC Jun 3,2004 03:53 PM UTC WinForms 3
Tags: GridControl
Kenneth Ertmann
Asked On June 3, 2004 08:03 AM UTC

Hey there I seem to have a problem making my grid work. I am trying to make a simple masked shorttime field (##:##) but the grid keeps prompting : Length cannot be less than zero. Parameter name: length The field should be able to contain ex. 12:29. See sourcecode. this.Frakl = new GridBoundColumn(); this.Frakl.HeaderText = "FraKl"; this.Frakl.MappingName = "FraKl"; this.Frakl.StyleInfo.CellType = "MaskEdit"; this.Frakl.StyleInfo.MaskEdit.Mask = "##:##"; this.Frakl.StyleInfo.FloatCell = false; this.Frakl.StyleInfo.MaskEdit.ClipMode = Syncfusion.Windows.Forms.Tools.ClipModes.IncludeLiterals; Please help /Kenneth

Administrator [Syncfusion]
Replied On June 3, 2004 08:17 AM UTC

I don''t see the problem in this sample using version Do you? What are you doing differently? MaskEditInForum_6300.zip

Kenneth Ertmann
Replied On June 3, 2004 03:34 PM UTC

Hi there... I am using v. 1.6. Could this be why i am having difficulty using masks? Thanks for a quick reply. /Kenneth >I don''t see the problem in this sample using version Do you? What are you doing differently? > >MaskEditInForum_6300.zip > >

Administrator [Syncfusion]
Replied On June 3, 2004 03:53 PM UTC

The sample from above works OK for me in (just comment out the two lines that give syntax error when you try to compile it). Does it work not for you?


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon