Select to view content in your preferred language

Selection bug in FeatureLayer DataGrid?

600
1
07-12-2010 11:31 AM
LucasCulbertson
Emerging Contributor
In order to speed up queries on FeatureLayer I've limited the geometry of the feature layer to the current extent so that only features within the map's current extent are shown both in the feature layer and the datagrid that I have hooked up with it.  Two questions:

1)  If I select one or more features from the layer and then pan around the map I lose my selection due to limiting the geometry of the featurelayer.  Is there any way to "hold on" to this selection as the user pans or zooms around the map and still only have features within the extent show up?

2)  On another tangent, is it possible to have only features within the extent show up on the map but have ALL features show up in the data grid?

Thanks for the help in advance!

Lucas J. Culbertson
GIS Analyst/Programmer
USACE
0 Kudos
1 Reply
dotMorten_esri
Esri Notable Contributor
To show all features in the datagrid, you need to have the features populated in the datagrid.
Features that are not in the map extent are not rendered to the map, so I'm not sure that you are really gaining any performance improvement by constantly changing the contents of the layer - on the contrary that sounds more expensive.
0 Kudos