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

Removing grid drop down box or using customer comparer.

Hi, We''re using the grid in bound mode, binding it to a standard datatable. The issue is that we don''t want the dates in the recordset to appear with the ''down arrowed'' expanding grid control next to them. We''ve tried converting them to strings - which fixes the issue with the expanding control however now, when they sort it (not surprisingly) does an alphanumeric sort, not a date one. I''ve tried setting up something with a customised ''iComparer''... however didn''t have much luck. Any suggestions?? I''m hoping that there''s an easy way to just turn that expanding control off for a column. Thanks in advance, Damien

1 Reply

AD Administrator Syncfusion Team March 2, 2004 08:49 PM UTC

There is a static member of the GridModelDataBinder.AutoInitCellTypes that you can set to control this functionality. So, at the top of your form’s constructor, before the call to InitializeComponent(), you can add: GridModelDataBinder.AutoInitCellTypes = False

Live Chat Icon For mobile
Up arrow icon