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
close icon

DateTime

i have a bunch of user input cells that i want to show dates. i am using a virtual grid. i tried using format = "d" but the cell defaults to 1/1/0001. can you change that so it defaults to "" but when a user types in a date it then formats it to the "d" format. thanks, ak

1 Reply

AD Administrator Syncfusion Team August 17, 2005 07:51 AM UTC

>>virtual grid. In your virtual grid''s QueryCellInfo, what does your data source provide in this case? It looks like it provides a zero. In this case, you might try setting e.Style.CellValue = DBNull.Value or maybe set it to null to see if that will give you the behavior you want to see. If not, if you will explain what value your data source is supplying in this case, and how you are setting the CellType and CellValueType for this cell, then maybe we can suggest something else.

Loader.
Live Chat Icon For mobile
Up arrow icon