Select to view content in your preferred language

Bind DataGrid with Featureset

793
2
07-22-2010 11:18 PM
AnurithaPathireddy
Emerging Contributor
I have a problem with dataGrid.
In My Silverlight application I need to get   all the Features of layer which I select.
With the foreach loop when I observe Each feature Attributes have list of key value pairs.
my requirement is all the Features that i am getting in the featureset should be displayed in a grid in such a way that the field Names as Column Names and the Values as column Values. That means
Simply it should work like a Datagrid which exist in asp.net.
The Columns in the Datgrid will be Created Dynamically When the Layer Selected.

I tried with the sample that was given in Silverlight samples By using Binding Object with the Path LastResult.features. But I didn't get Proper Result with this. Please help me.
0 Kudos
2 Replies
AnurithaPathireddy
Emerging Contributor
Forgot to tell. I am using ArcGISDynamicMapservice Layer and the SubLayers were populated in a combobox. All these Things should happen when I select sub layer of Dynamic Map Layerfrom the list.
0 Kudos
AliMirzabeigi
Emerging Contributor
Anuritha,

You need to set AutoGenerateColumns attribute of the FeatureDataGrid to FALSE, then add DataGridColumn collection yourself by using key value pairs in featuresets.
0 Kudos