Hi friends,
I am a newbie in the GIS devlopement and trying to get the objectid shown in the featuredatgrid for silverlight application.
Here is the already existing code fo my project:
<Grid x:Name="FeatureDataGridModuleLayoutRoot">
<esri:FeatureDataGrid x:Name="MapFeatureDataGrid" Map="{Binding Path=MapObject, Mode=TwoWay}" >
</esri:FeatureDataGrid>
</Grid>
I need to keep the existing columns and add the objectid. How can it be done in XAMl or in the code behind.
Thank you in advance
Solved! Go to Solution.
Posting my answer here just in case someone else may need it in future:
<Grid x:Name="FeatureDataGridModuleLayoutRoot">
<esri:FeatureDataGrid x:Name="MapFeatureDataGrid" Map="{Binding Path=MapObject, Mode=TwoWay}">
<esri:FeatureDataGrid.Columns>
<sdk:DataGridTextColumn x:Name="OBJECTID" Width="100" Binding="{Binding OBJECTID}" Header="OBJECTID" />
</esri:FeatureDataGrid.Columns>
</esri:FeatureDataGrid>
</Grid>
Posting my answer here just in case someone else may need it in future:
<Grid x:Name="FeatureDataGridModuleLayoutRoot">
<esri:FeatureDataGrid x:Name="MapFeatureDataGrid" Map="{Binding Path=MapObject, Mode=TwoWay}">
<esri:FeatureDataGrid.Columns>
<sdk:DataGridTextColumn x:Name="OBJECTID" Width="100" Binding="{Binding OBJECTID}" Header="OBJECTID" />
</esri:FeatureDataGrid.Columns>
</esri:FeatureDataGrid>
</Grid>