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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:





96974 Oct 18,2010 11:21 AM UTC Oct 19,2010 10:39 AM UTC WinForms 1
Tags: GridControl
nazmi anuar
Asked On October 18, 2010 11:21 AM UTC

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



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