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

Cell Type Question?

Thread ID:





51807 Nov 14,2006 04:29 PM UTC Nov 15,2006 04:10 AM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On November 14, 2006 04:29 PM UTC

I have a cell that can either have True or False in it. I want the user to be able to either hit a "T" or "F" and have True or False show up in the cell. I would rather not use a drop-down if possible. Is there any samples that show something similar to this or do you have any suggestions on doing it. Thanks.

Administrator [Syncfusion]
Replied On November 15, 2006 04:10 AM UTC

Hi Thomas,

You can use the ComboBox celltype and set the ShowButton property to GridShowButtons.Hide to remove the dropdown button in a cell. Here is a code snippet.

//code snippet for GridControl.
StringCollection sc = new StringCollection();
this.gridControl1[2,2].CellType = "ComboBox";
this.gridControl1[2,2].ChoiceList = sc;
this.gridControl1[2,2].ShowButtons = GridShowButtons.Hide;

Best Regards,


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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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