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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

26552 Mar 24,2005 09:42 PM UTC Mar 24,2005 10:44 PM UTC Windows Forms 1
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On March 24, 2005 09:42 PM UTC

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

Kulvir
Replied On 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

CONFIRMATION

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.

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

;