Hi,
Have someone solve the problem of showing the attribute table yet? Actually I do not have fixed attribute columns. I just want to display the attribute table of one layer with all values as I can see in ArcMap, but in my case I want to display using Silverlight.
Here is the code that retrieves the FeatureSelection:
QueryTask queryTask = new QueryTask(url);
queryTask.ExecuteCompleted += new EventHandler<QueryEventArgs>(queryTask_ExecuteCompleted);
Query query = new Query();
query.ReturnGeometry = true;
// Use textbox text as query condition.
query.Where = "1=1";
query.OutFields.Add("*");
queryTask.ExecuteAsync(query);
And the population I was trying to make:
void queryTask_ExecuteCompleted(object sender, QueryEventArgs e)
{
attribWidget.featureDataGrid1.Map = this.MapControl;
attribWidget.featureDataGrid1.ItemsSource = e.FeatureSet.Features;
}
But I have no success neither with DataGrid nor FeatureDataGrid
ps: I don't want to make any previous selection on the map, so I don't need a graphic layer. I just want to display attributes on FeatureDataGrid