Posted 15 September 2021, 9:24 pm EST
I want to know how to populate ComboList or DataMap to a specific cell, i need to populate with different data in each one
Forums Home / ComponentOne / WinForms Edition
Posted by: eliseu on 15 September 2021, 9:24 pm EST
Posted 15 September 2021, 9:24 pm EST
I want to know how to populate ComboList or DataMap to a specific cell, i need to populate with different data in each one
Posted 15 September 2021, 10:15 pm EST
Hello,
You can use the DataMap and ComboList property of the CellStyle class and assign individual stlyes to each cell according to your need:
Please see the stripped-down code of how you can different CombList to each cell:
CellStyle cs1 = c1FlexGrid1.Styles.Add("Cell1");
cs1.ComboList = "Demo1 | Demo2 | Demo3";
c1FlexGrid1.SetCellStyle(1, 1, cs1);
CellStyle cs2 = c1FlexGrid1.Styles.Add("Cell2");
cs2.ComboList = "Temp1 | Temp2 | Temp3";
c1FlexGrid1.SetCellStyle(1, 2, cs2);
Regards,
Prabhat Sharma.