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

Show CheckBox instead of dropdown

How do I make a column show checkboxes instead of true/false dropdown for boolean columns

2 Replies

HA haneefm Syncfusion Team June 4, 2007 03:35 PM UTC

Hi Nedu,

You can do this by changing the Celltype of the checkbox column to combox and also you need to set the choicelist of that column. Here is a code snippet that show this.

this.gridGroupingControl1.TableDescriptor.Columns["BooleanColumnName"].Appearance.AnyRecordFieldCell.CellType = "ComboBox";

System.Collections.Specialized.StringCollection sc = new System.Collections.Specialized.StringCollection();
sc.Add(true.ToString() );
sc.Add(false.ToString() );
this.gridGroupingControl1.TableDescriptor.Columns["BooleanColumnName"].Appearance.AnyRecordFieldCell.ChoiceList = sc;

Best regards,
Haneef


CH Chinedu June 6, 2007 06:05 PM UTC

Thanks Haneef,

I couldn't survive one day without you....thanks a million

Loader.
Live Chat Icon For mobile
Up arrow icon