Hi,
I am making a program in which I want to add rows in datagridview dynamically. I am also like to add combobox and textbox in cells of datagridview row.
Thanks.
How can I add rows in datafridview in c#.
Ask by James Smith
Updated 10 Feb 2013
Hi Smith,
You can add rows to the Datagrid using Columns property with Add method. Something like,
dataGridView1.Rows.Add("Windows XP");
To add combobox and Textbox to the Cells of the datagrid you can use the Sample code below,
Hope this might help you.
Thanks,
Shankar