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.
Unfortunately, activation email could not send to your email. Please try again.

How to make GDBG showing time on MaskEdit Cell with DateTime valuetype

Thread ID:





96974 Oct 18,2010 07:21 AM Oct 19,2010 06:39 AM Windows Forms 1
Tags: GridControl
nazmi anuar
Asked On October 18, 2010 07:21 AM

Hi there,
How do i setup the GridBoundColoumns soo that i can have a MaskEdit cell type column with DateTime valuetype, but only show the time value.

i.e cell value shown as = 10:20:30

i try using the setup below but it only mask the date value not time.

CellType - MaskEdit
CellValueType - DateTime
Format - HH:MM:ss
MaskEdit-Mask - 99:99:99


Jisha Joy [Syncfusion]
Replied On October 19, 2010 06:39 AM

Hi Nazmi,

By default, the datetime cellvaluetype refers to the "MonthCalendar" celltype in Syncfusion grid. The MaskEdit property cannot be applied in this case. In your case you could try using the Format property to dispaly only the date part.

See the code:

this.gridControl1[10,2].Format = "MM/dd/yyyy";



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.

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.