Edit this page

Insert New Row into Paged GridView

This help article will show you how to insert new row into paged GridView

See this article for more information about how to page RadGridView.

When you insert new row, it is added to the last page of RadDataPager. If you want to page to the new row when the BeginInsert command is called, you will have to handle GridView's AddingNewDataItem event and execute the following code:

C#

private void clubsGrid_AddingNewDataItem(object sender, Telerik.Windows.Controls.GridView.GridViewAddingNewEventArgs e)
{
    Dispatcher.BeginInvoke(new Action(() => {
        ((RadGridView)sender).Items.MoveToLastPage();
    }));
}