Hi Ramin,
Thank you for using Syncfusion products.
Here we have provided the sample as per your need. In the below sample if you change the datasource, the Combobox item will be changed dynamically as per Datasource. Please make use of below code,
Code Snippet:
void gridGroupingControl1_QueryCellStyleInfo(object sender, GridTableCellStyleInfoEventArgs e)
{
if (e.TableCellIdentity.RowIndex > 2 && e.TableCellIdentity.Column!=null)
{
if (defaultDatasource && e.TableCellIdentity.Column.Name=="Data1")
{
e.Style.CellType = GridCellTypeName.ComboBox;
e.Style.ChoiceList = defaultDatasourcelist;
}
if(employeeDatasource && e.TableCellIdentity.Column.Name=="Data2")
{
e.Style.CellType = GridCellTypeName.ComboBox;
e.Style.ChoiceList = employeeDatasourcelist;
}
}
Please let me know if you have any concerns.
Regards,
Neelakandan