Select to view content in your preferred language

FeatureDataGrid Data Removal and Mapnipulation

746
1
05-24-2012 12:27 AM
ManojrajTeli
Deactivated User
Is it possible to remove some rows from the FeatureDataGrid depending upon column value. I mean to say remove some rows where Capacity(Column from FeatureDataGrid) >1000 or depending on more then two condition like Capacity > 1000 and/or Type = '1stclass'. Thank you in advance.
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
You can use the FilterSource property of the FeatureDataGrid to set the graphics that have to be displyed in the feature datagrid.

Somethink like:
myFeatureDatagrid.FilterSource = graphicsLayer.Graphics.Where(g => (int)g.Attributes["Capacity"] > 1000 && g.Attributes["Type"] == "1stclass");
0 Kudos