I have a FeatureDataForm with and EditEnded handler like this.private void MyFeatureDataForm_EditEnded(object sender, EventArgs e)
{
foreach (Layer lyr in MyMap.Layers)
{
if (lyr is FeatureLayer)
{
FeatureLayer featureLayer = lyr as FeatureLayer;
featureLayer.SaveEdits();
featureLayer.Refresh();
featureLayer.Update();
}
}
}
This cycles through all the FeatureLayers on the map and attempts to refresh them. Supposedly I only need the Update() command to do this but the SaveEdits() and Refresh() commands are in there for experimentation. I found that there is no benefit from the first 2, however if the Update() command is included the edit which was just made seems to get cancelled and nothing changes on the map or its data. Client caching is off and IsReadOnly is set to false. Anybody know what gives here?Thanks