How can I add rows to a DataGridView control in C#?
I have created 3 colum开发者_如何学运维ns on a DataGridView
control, but I don't know how to add rows. Please help.
Possibly a duplicate of:
How to add data to DataGridView
or
how to add row to datagridview
or
How to add rows and columns to a DataGrid?
or
How can I add one row to a DataGridView?
Please use the search bar located on the top right corner of this site if you think your question may have already been covered.
This is just off the top of my head..
DataRowItem dr = DataGrid.NewRow();
DataGrid.Items.Add(dr);
精彩评论