On a WinForms
application with C#
I'm using RadGridView
control of Telerik
company.
One of the columns of this RadGridView is of type GridViewComboBoxColumn
. I want to give this column a DataSource
populated at runtime and then set the three important properties of the ComboBox (DataSource
, DisplayMember
, ValueMember
).
How can I programmatically do this?
I've tried
DataGridViewComboBoxColumn comboIBAN =
rgvCheques.Columns["clmnIBAN"] as DataGridViewComboBoxColumn;
But it ends up with the following error