New to Telerik UI for WPF? Download free 30-day trial

Insert New Row in ReadOnly RadGridView

When the RadGridView is read-only or bound to a collection that does not implement the INotifyCollectionChanged interface you can use the RadGridView Items collection's AddNewItem() method to add an item and select it if needed. Example 1 shows how this can be done:

Example 1: Inser New Row in ReadOnly RadGridView

    private void Button1_Click(object sender, RoutedEventArgs e) 
    { 
        var item = new Club() { Name = "New Club" }; 
        this.myGridView.Items.AddNewItem(item); 
        this.myGridView.SelectedItem = item; // select the new row if required 
    } 

See Also

In this article