I have two gridviews that are bound to the same QueryableCollectionView. I need the selected items of the two gridviews to be the same at all times.
There seem to be some built-in funtionalty like this. If a select a row in GridView1 the same row will be selected in GridView2. But if I select multiple rows in GridView1, only the first selected of those rows will be selected in GridView2.
How can I
sync the selection between the gridviews?
I used to have the gridviews bound to the same RadObservableCollection. Then I synced the selection manually on the SelectionChanged-event on GridView1 like this:
private
void
GridView1_SelectionChanged(
object
sender, SelectionChangeEventArgs e)
{
GridView2.SelectedItems.Clear();
foreach
(var item
in
GridView1.SelectedItems)
{
GridView2.SelectedItems.Add(item);
}
}