we are in the process of upgrading to 2.3 and have a problem with the feature data grid. We have a FeatureDataGrid and when the user clicks on a record, the app zooms to and sets definition queries based on the feature. It works fine if I reference the v2.2 Toolkit.dll. As soon as I reference the v2.3 toolkit, this error pops up.
private void sectionDataGrid_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (sectionDataGrid.SelectedIndex > -1)
{
MyMap.ZoomTo(sectionDataGrid.SelectedGraphics[0].Geometry);
string wLiner = sectionDataGrid.SelectedGraphics[0].Attributes["SECTION"].ToString();
..... other code here....
}
I get a null error on the ZoomTo because SelectedGraphics.Count is always 0! So I can't get to the feature to zoom or get attributes.