This question is locked. New answers and comments are not allowed.
Hi,
I went througth the sample project which you had sent to insert the row after the selected row in the grid..
I am using radDomainDataSource to bind to grid i need to insert new row after the selected row.
I followed your sample while debugging i found a null reference.
when i assign
var source = this.radGridView1.ItemsSource as ObservableCollection<Web.SupplierAccount>;
i get values in itemsSource but its not getting loaded into source;
I have attached my project below;
I went througth the sample project which you had sent to insert the row after the selected row in the grid..
I am using radDomainDataSource to bind to grid i need to insert new row after the selected row.
I followed your sample while debugging i found a null reference.
when i assign
var source = this.radGridView1.ItemsSource as ObservableCollection<Web.SupplierAccount>;
i get values in itemsSource but its not getting loaded into source;
I have attached my project below;
radGridView1.IsReadOnly=false; var selectedRow = radGridView1.SelectedItem as Web.SupplierAccount; // radGridView1.BeginInsert(); var newRow = new Web.SupplierAccount() { Name = "enter" }; var source = this.radGridView1.ItemsSource as ObservableCollection<Web.SupplierAccount>; source.Insert(this.radGridView1.Items.IndexOf(selectedRow) + 1, newRow);