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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Combo data not displaying in GridControl

Thread ID:





6124 Jul 31,2003 10:59 PM UTC Aug 1,2003 05:38 AM UTC WinForms 1
Tags: GridControl
Aaron Ching
Asked On July 31, 2003 10:59 PM UTC

I'm populating data to a combobox cell as a stringcollection to the choicelist. However, the combobox is still empty. Here's my codes: StringCollection domainType = new StringCollection(); domainType.Add("one"); domainType.Add("two"); grid[row, 2].CellType = "ComboBox"; grid[row, 2].ChoiceList = domainType; grid[row, 2].Enabled = true; grid[row, 2].ExclusiveChoiceList = true; Thanks for your help as always.

Administrator [Syncfusion]
Replied On August 1, 2003 05:38 AM UTC

I tried your code in a Form_Load after dropping a GridControl on a new form. It seemed to work as expected there. I also added a button, and tried your code from a button handler, and it still seemed to work. In your case, is the cell at row, 2 set to be ReadOnly for some reason? If so, try setting grid.IgnoreReadOnly = true before your code, and then reset it to false after youe code. If that is not it, what version of teh grid are you using. Also, can you post a sample project showing the problem.


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

This page will automatically be redirected to the 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

Live Chat Icon For mobile
Live Chat Icon