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

How to format DataTime Column in GDBG?

Thread ID:





24151 Jan 29,2005 12:22 AM UTC Feb 1,2005 06:30 AM UTC WinForms 3
Tags: GridControl
David Bosak
Asked On January 29, 2005 12:22 AM UTC

I set MaskEditGridStyle for DateTime Column in GDBG.The value of this column is null, will be showed : "//". But I want it will be showed : "00/00/0000". How can I do that ?

Administrator [Syncfusion]
Replied On January 29, 2005 06:15 AM UTC

Try setting this.gridDataBoundGrid1.Binder.InternalColumns["Col1"].StyleInfo.MaskEdit.PaddingCharacter = ''0'';

David Bosak
Replied On February 1, 2005 12:24 AM UTC

>Try setting > >this.gridDataBoundGrid1.Binder.InternalColumns["Col1"].StyleInfo.MaskEdit.PaddingCharacter = ''0''; > If use this way, data which is showed in GDBG is wrong. If you have ''1/2/2002'' in database and the grid will be showed ''10/20/2002''. Help me this problem. Thanks

Administrator [Syncfusion]
Replied On February 1, 2005 06:30 AM UTC

I do not know how you will get the behavior you want using a MaskEdit cell. You can handle 2-3 events and probably get the exact behavior you want as in the sample below, or you can use a DateTime column so your user has a dropdown cell but will not get the typing feel of a MaskEdit cell. http://www.syncfusion.com/forums/Uploads/GGC_Forum_Date.zip


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