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.
Hi,
We have a DataGrid. I have bound a combo box column with dataGrid.SetGridComboBox method.
Then Dynamically based on user selection of another combo box column I have to load the datasource of the original combo box.
Here is what I have written:
dataGrid[2, 2].CellType = "ComboBox";
dataGrid[2, 2].DataSource = null;
dataGrid[2, 2].DataSource =
dsEntityClassType.Tables[0];
dataGrid[2, 2].DisplayMember = "Name";
dataGrid[2, 2].ValueMember = "EntityTypeID";
The code compiles well without bugs. But the new datasource is not shown in the combo at 2,2.
Thanks and have a nice day :)
Help would be greatly appreciated
David.
ADAdministrator Syncfusion Team January 25, 2005 11:01 AM UTC
If dataGrid is a GridDataBoundGrid, then you cannot set style properties on a cell by cell basis.
See these KB articles on this.
http://64.78.18.34/Support/article.aspx?id=560
http://64.78.18.34/Support/article.aspx?id=10351
If you want to dynamically provide the dropdown list for a particular cell, then one way to do this is to use the CurrentCellShowingDropDown. See this KB.
http://64.78.18.34/Support/article.aspx?id=567