AD
Administrator
Syncfusion Team
November 5, 2003 12:11 PM UTC
If you do not explicitly add GridBoundColumns to the grid.GridBoundColumns collection, then this property remains unpopulated.
But in this case, you can use the grid.Binder.InternalColumns collection that does get populated when no GridBoundColumns have been explicitly added. Below is some sample usage.
GridStyleInfo style = this.gridDataBoundGrid1.Binder.InternalColumns[3].StyleInfo;
style.CellType = "ComboBox";
style.DataSource = comboColumnDataTable;
style.DisplayMember = "displaymember";
style.ValueMember = "valuemember";
style.BackColor = Color.LightGoldenrodYellow;