private void MyDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { foreach (var item in e.AddedItems) { var g = GetGraphicSibling(item); } } private static Graphic GetGraphicSibling(object item) { if (item != null) { MethodInfo mi = item.GetType().GetMethod("GetGraphicSibling"); if (mi != null) return mi.Invoke(item, null) as Graphic; } return null; }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.