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

How can I get rid of the dropdown for datatime column?

Hi, I have a databoundgrid with a datetime column. I used GridStyleInfo style = grid.Binder.InternalColumns["Time"].StyleInfo; style.CellValueType = typeof(DateTime); style.Format = "HH:mm"; After that, the cells still show as a dropdown calendar. How can I make it just like a textbox but with datatime type, so I can sort it by time? Thanks a lot Chris

1 Reply

KU Kulvir March 24, 2005 10:44 PM UTC

Try setting the cell to static: style.CellType = "Static"; >Hi, > >I have a databoundgrid with a datetime column. I used > >GridStyleInfo style = grid.Binder.InternalColumns["Time"].StyleInfo; >style.CellValueType = typeof(DateTime); > style.Format = "HH:mm"; > >After that, the cells still show as a dropdown calendar. How can I make it just like a textbox but with datatime type, so I can sort it by time? >Thanks a lot > >Chris
Loader.
Live Chat Icon For mobile
Up arrow icon