For some reason all feature layers of my mobile cache are read-only. Would you know what needs to be done in order to be able to add values (points, polylines, etc) to a feature layer ? My suspicion is that I need to setup something in my map document, mxd file. Or perhaps when I make the cache I need to do some extra step?In the following code I get exception that the feature layer is not editable:
// Selects a specific cache layer
FeatureLayer featureLayer = _cacheData.Layers[0] as FeatureLayer;
// Gets the feature layer data table schema
FeatureDataTable featureDataTable = featureLayer.GetDataTable( );
// Creates a new row
FeatureDataRow featureDataRow = featureDataTable.NewRow( );
Last line raises exception "The target feature layer does not allow creation of new features."