string type = "Capacity"; FeatureLayer lyr = Map.Layers["Reservoirs"] as FeatureLayer; lyr.ClearGraphics(); lyr.Url = "http://Dummy/ArcGIS/rest/services/Dummy/FeatureServer/3"; yr.Where = "Res_Type = 'GLR'"; lyr.OutFields.Add("*"); lyr.Update(); System.Windows.Data.Binding bind = new System.Windows.Data.Binding(); bind.ElementName = "Map"; bind.Path = new PropertyPath("Layers.[Reservoirs]"); MyDataGrid1.SetBinding(ESRI.ArcGIS.Client.Toolkit.FeatureDataGrid.GraphicsLayerProperty, bind); MyDataGrid1.UpdateLayout();
FeatureLayer lyr = Map.Layers["Reservoirs"] as FeatureLayer; lyr.ClearGraphics(); lyr.Url = http://dummy/ArcGIS/rest/services/Dummy/FeatureServer/3;
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.