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; }
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.