//run identifytask for selected station to get the data to populate the datagrid
IdentifyTask identifyTask = new IdentifyTask("http://arcgisd/ArcGIS/rest/services/Facilities/MapServer");//fix
identifyTask.ExecuteCompleted += IdentifyTaskPostEdit_ExecuteCompleted;
identifyTask.Failed += IdentifyTask_Failed;
IdentifyParameters identifyParameters = new IdentifyParameters();
identifyParameters.LayerOption = LayerOption.all;
identifyParameters.Tolerance = 20;
//Pass current Map properties to identify parameters
identifyParameters.MapExtent = MyMap.Extent;
identifyParameters.Width = (int)MyMap.ActualWidth;
identifyParameters.Height = (int)MyMap.ActualHeight;
//Identify features at the click point
identifyParameters.LayerIds.Add(0);
identifyParameters.SpatialReferenceWKID = MyMap.SpatialReference.WKID;
Map.MouseEventArgs mousecords = new Map.MouseEventArgs();
mousecords.MapPoint = new MapPoint();
mousecords.MapPoint.X = dLongX;
mousecords.MapPoint.Y = dLatY;
mousecords.MapPoint.SpatialReference = MyMap.SpatialReference;
identifyParameters.Geometry = mousecords.MapPoint;
identifyTask.ExecuteAsync(identifyParameters);