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

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

thanks.



1 Reply

JJ Jisha Joy Syncfusion Team October 19, 2010 10:39 AM UTC

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";

Regards,
Jisha


Loader.
Up arrow icon