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.

Show CheckBox instead of dropdown

Thread ID:

Created:

Updated:

Platform:

Replies:

61837 Jun 3,2007 01:02 PM Jun 6,2007 02:05 PM Windows Forms 2
loading
Tags: GridControl
Chinedu
Asked On June 3, 2007 01:02 PM

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

haneefm [Syncfusion]
Replied On June 4, 2007 11:35 AM

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 02:05 PM

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.

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.

;