If your graphics are coming from an identify task, you might remove the useless attributes by code by something like:
foreach (IdentifyResult identifyResult in args.IdentifyResults)
{
Graphic graphic = identifyResult.Feature;
graphic.Attributes.Remove("Shape");
graphic.Attributes.Remove("ObjectID");
}
Not sure it's the best way, but no other idea:)
Salt17 or dbroux....where do I need to add this code? If I change the foreach loop below I can't get it to work.
foreach (IdentifyResult result in results)
{
Graphic feature = result.Feature;
string title = result.Value.ToString() + " (" + result.LayerName + ")";
_dataItems.Add(new DataItem()
{
Title = title,
Data = feature.Attributes
});
IdentifyComboBox.Items.Add(title);
}
IdentifyComboBox.SelectedIndex = 0;
}
}