Select to view content in your preferred language

Adding points to feature layer with feature data grid

501
1
07-13-2010 01:57 PM
JamesMolohon
Emerging Contributor
I need to add points to the map in a feature layer and feature data grid as the data source is updated without user intervention.  I have tried using the feature layer update method, but this causes the grid to completely reset and change any user sorting, column layout, or row selection.   How can I add rows to the feature layer while maintaining the state of the grid?
Thanks,
James
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
Use a QueryTask instead of calling Update() and add the new features returned from the query to the layer. You will need some type of way to only query data that has changed (ie a timestamp column or similar) if you want to really optimize it.
Note that if you are hitting a FeatureServer, you would want to set AutoSave to false, or you will risk adding the features multiple times.
0 Kudos