开发者

How can I add rows to a DataGridView control in C#?

开发者 https://www.devze.com 2023-02-12 16:37 出处:网络
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:

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);

0

精彩评论

暂无评论...
验证码 换一张
取 消