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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Show CheckBox instead of dropdown

Thread ID:

Created:

Updated:

Platform:

Replies:

61837 Jun 3,2007 05:02 PM UTC Jun 6,2007 06:05 PM UTC WinForms 2
loading
Tags: GridControl
Chinedu
Asked On June 3, 2007 05:02 PM UTC

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

haneefm [Syncfusion]
Replied On 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

Chinedu
Replied On June 6, 2007 06:05 PM UTC

Thanks Haneef,

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

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

;