Hi Telerik
I have a web application, it work as below:
I have a object : Customer and list data of Customer : ObservableCollection<Customer>, it inherit from INotifyPropertyChanged
and I have a RadGridView, i implemented binding between RadGridVIew and ObservableCollection<Customer> with mode binding twoway.
I want to have clone of row in RadGridView, then it will be going to insert to last row with command as below:
GridView.Items.Insert(GridView.Items.Count,GridVIew.SelectedItem); or GridView.Items.Add(GridVIew.SelectedItem);
But seemed to do it somehow. I received exception as: "operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead"
So, i have to how to implement clones a row on RadGridView.
example:
Cus_ID Cus_Name
Cus01 Radda
Cus02 Minda => this is row, which i selected to implement clone
__________________
and I want clone to second row as below:
Cus_ID Cus_Name
Cus01 Radda
Cus02 Minda
Cus02 Minda => this is row, it is copied form from second row.
in this example, I don't specific object as Customer, i want to use SelectedItem property to clones. I hope you can understand my thinking about this issue.
I have a web application, it work as below:
I have a object : Customer and list data of Customer : ObservableCollection<Customer>, it inherit from INotifyPropertyChanged
and I have a RadGridView, i implemented binding between RadGridVIew and ObservableCollection<Customer> with mode binding twoway.
I want to have clone of row in RadGridView, then it will be going to insert to last row with command as below:
GridView.Items.Insert(GridView.Items.Count,GridVIew.SelectedItem); or GridView.Items.Add(GridVIew.SelectedItem);
But seemed to do it somehow. I received exception as: "operation is not valid while ItemsSource is in use. Access and modify elements with ItemsControl.ItemsSource instead"
So, i have to how to implement clones a row on RadGridView.
example:
Cus_ID Cus_Name
Cus01 Radda
Cus02 Minda => this is row, which i selected to implement clone
__________________
and I want clone to second row as below:
Cus_ID Cus_Name
Cus01 Radda
Cus02 Minda
Cus02 Minda => this is row, it is copied form from second row.
in this example, I don't specific object as Customer, i want to use SelectedItem property to clones. I hope you can understand my thinking about this issue.