public SelectionPreserver(GridViewSelection s) { this.s = s; previousSelectedItems = new HashSet <object>(); foreach (var i in s.SelectedRows) { previousSelectedItems.Add(s.DataStoreView.Model[i]); } }
private new void Initialize() { // Always attach the SelectionChangedEvent // since it is always handled in the GridView. HandleEvent(Grid.SelectionChangedEvent); // Create a selection so that Filter and SortComparer // can be set before DataStore. selection = new GridViewSelection(this, null); }
public SelectionPreserver(GridViewSelection s) { this.s = s; previousSelectedItems = new HashSet<object>(); foreach (var i in s.SelectedRows) previousSelectedItems.Add(s.DataStoreView.Model[i]); }