Hi,
How do i Dynamically add a comboBox column to a a data grid view column?
TY
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Kirtan PatelPosted Oct 21, 2009, 5:05 AM
Friend,Here is Code for it
please check "do you like this answer" :)
DataGridViewComboBoxCell cell = new DataGridViewComboBoxCell();
cell.Items.Add("Test");
cell.Items.Add("Test2");
DataGridViewColumn clm = new DataGridViewColumn(cell);
dataGridView1.Columns.Add(clm);
jingePosted Oct 21, 2009, 6:22 AM
The above looks even better.
naura paxPosted Oct 21, 2009, 5:02 AM
here is one example
you can write this in form load.