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

databoundGrid datatime column

Hi! I''ve a probleme... When I add a datatime column in DataBoundGrid, the column show the calendar activeX. How I can diseable or set visible of this control. I want only show the date with datetime cellvaluetype in a column. And if I use a string type, I can''t use a specific format with baseStyleMap Please help me. Alexandre

1 Reply

AF Alexandre faucher December 2, 2005 07:48 PM UTC

ok,I found: if ( e.Style.CellType == "MonthCalendar" && e.RowIndex > 0) { e.Style.Format = "yyyy/MM/dd hh:mm:ss tt"; e.Style.CellType = "String"; }

Loader.
Live Chat Icon For mobile
Up arrow icon