How get number of features (rows) in FeatureDataGrid

486
1
02-01-2012 07:16 AM
GeorgeShi
New Contributor
Hi All,

A FeatureLayer is attached with a FeatureDataGrid programmatically. In the bottom of the FeatureDataGrid, it indicates "x out of y Selected". y is the number of features in the FeatureLayer (or graphiclayer).
How can I get access to the number in the code through the reference of FeatureDataGrid?

Thank you in advance!


George
0 Kudos
1 Reply
JenniferNery
Esri Regular Contributor
FeatureLayer.Graphics.Count, this is not always equal to features in feature service as it depends on your FeatureLayer.Mode property. Graphics.Count only show items in your layer that may have been limited by map extent (if OnDemand) or service maxRecordCount (if SnapShot) or selected graphics (if SelectionOnly). FeatureDataGrid.GraphicsLayer.Graphics.Count should also be the same number unless FilterSource has been set.
0 Kudos