Adding and Inserting Rows In Unbound Mode
When RadGridView is in unbound mode, you can add new rows to the Rows collection.
Adding rows to RadGridView
For example, if the grid control contains four columns – GridViewTextBoxColumn, GridViewDecimalColumn, GridViewDateTimeColumn and GridViewCheckBoxColumn you can add an empty row as it is demonstrated in the code snippet below.
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
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
You can also add rows by creating an instance of GridViewDataRowInfo and adding it to the Rows collection of RadGridView:
Add a GridViewDataRowInfo
Inserting rows in RadGridView
Rows can be inserted at a specified position by using the Insert method of the Rows collection. Below you can see an example of this functionality: