private void MyDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (MyDataGrid == null || MyDataGrid.SelectedGraphics == null) return; System.Diagnostics.Debug.WriteLine("begin selection"); foreach (var g in MyDataGrid.SelectedGraphics) System.Diagnostics.Debug.WriteLine(g.Attributes["OBJECTID"]); System.Diagnostics.Debug.WriteLine("end selection"); }
private void MyDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { Dispatcher.BeginInvoke(() => { if (MyDataGrid == null || MyDataGrid.SelectedGraphics == null) return; System.Diagnostics.Debug.WriteLine("begin selection"); foreach (var g in MyDataGrid.SelectedGraphics) System.Diagnostics.Debug.WriteLine(g.Attributes["OBJECTID"]); System.Diagnostics.Debug.WriteLine("end selection"); }); }.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.