The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
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.
ADAdministrator Syncfusion Team 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.