private void FeatureDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { }
private void MyDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { if (MyDataGrid.SelectedItem != null) { if (MyDataGrid.SelectedGraphics.Count == 1) { var graphics = (sender as FeatureDataGrid).SelectedGraphics; foreach (var g in graphics) { // get id var id = g.Attributes["STATE_NAME"]; StateName = (string)id; break; } MessageBox.Show(StateName); } } }
var graphics = (sender as ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid).SelectedGraphics; foreach (var g in graphics) { // get id var id = g.Attributes["APN"]; string apn10 = (string)id; IDValue.Text = apn10; // TODO: retrieve outside data for this id // PARCELIDPASS.Text = string.Format("The ParcelID passed is {0}", id); PARCELIDPASS.Text = apn10; break; }
private void FeatureDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e) { var graphics = (sender as ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid).SelectedGraphics; foreach (var g in graphics) { // get id var id = g.Attributes["APN"]; string apn10 = (string)id; IDValue.Text = apn10; // TODO: retrieve outside data for this id // PARCELIDPASS.Text = string.Format("The ParcelID passed is {0}", id); PARCELIDPASS.Text = apn10; break; }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.