madhu bp
madhu bp

Reputation: 1

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

I have created 3 columns on a DataGridView control, but I don't know how to add rows. Please help.

Upvotes: 0

Views: 620

Answers (2)

Joe
Joe

Reputation: 11667

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.

Upvotes: 3

Robbie Tapping
Robbie Tapping

Reputation: 2556

This is just off the top of my head..

DataRowItem dr = DataGrid.NewRow();

DataGrid.Items.Add(dr);

Upvotes: 0

Related Questions