The RadGridView.Rows.AddNew() method adds an empty row and allows the user to enter a value for each column cells’:

Add an empty row

radGridView1.Rows.AddNew();

RadGridView1.Rows.AddNew()

Figure 1: Add a blank new row.

The RadGridView.Rows.Add(value-for-first-column, value-for-second-column, value-for-third-column) method adds a new row with the specified values. You can use the following code snippet to add values for each column:

Add a new row with values

radGridView1.Rows.Add("Adding New Row", 12.5, DateTime.Now, true);

RadGridView1.Rows.Add("Adding New Row", 12.5, DateTime.Now, True)

Figure 2: Add new row with data in it.

You can also add rows by creating an instance of GridViewDataRowInfo and adding it to the Rows collection of RadGridView:

Was this article helpful?

/

Give article feedback

Tell us how we can improve this article

Code samples are inaccurate / outdated.
I expected to find other / more information.
There are typos / broken links / broken page elements.
Content is inaccurate / outdated.
Other
By checking this box you consent to Progress contacting you by email about your response on this page.

Community

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.