hi,
I'm developing a winForms project in VS 2019,
I added column from properties columns.
1- I want to set datasource , displaymember,valuemember programatically.how can i do?
2-can i add different items for each row.If its possible , how can i do?
thanks for help
|
Queries |
Solutions | |
|
I want to set datasource , displaymember,valuemember programatically.how can i do?
|
Your requirement to set datasource , displaymember and valuemember programmatically in GridComboBoxColumn can be achieved by getting the GridComboBoxColumn by using MappingName and customize like below mentioned code snippet,
For more information related to GridComboBoxColumn, please refer the below user guide documentation link, UG Link : https://help.syncfusion.com/windowsforms/datagrid/columntypes?cs-save-lang=1&cs-lang=vb#gridcomboboxcolumn | |
|
can i add different items for each row.If its possible , how can i do?
|
Yes. Different data sources can be loaded for each row of the GridComboBoxColumn by using the DataSourceSelector property. For more information related to Loading different DataSources for each row, please refer the below user guide documentation link, UG Link: https://help.syncfusion.com/windowsforms/datagrid/columntypes?cs-save-lang=1&cs-lang=vb#loading-different-datasources-for-each-row-of-gridcomboboxcolumn |
Hi, I am implementing different source for each column combobox. I am using "DataSourceSelector" and it works perfect for me. The problem I have is that the source of each comobox needs to be filled only when the user displays the combobox, also the method is async and I can't use it inside the " public IEnumerable GetDataSource(object record, object dataSource)" method
Hi Sergio,
It seems you have created a new forum for this same query. Kindly have further follow-ups for this query in the forum thread 176510.
Regards,
Sangavi