Thanks Morten for your help. It appears that the Editor class is available only in ArcGIS 10. We might have to wait till we get 10.
Christine, am not exactly sure what you want help with. The data grid is not being used to populate the dropdown list of layers for selection. In the Layers tab, we are using the Treeview control to display layer list. The below code is being used to populate the dropdown with layers
public void FillMapLayers(ComboBox cmbboxLayers, LayerInfo[] layerInfo, string selectedID)
{
try
{
cmbboxLayers.Items.Clear();
}
catch
{
cmbboxLayers.ItemsSource = null;
}
ComboBoxItem cmbboxItem;
for (int i = 0; i < layerInfo.Length; i++)
{
if (layerInfo.ID.ToString() != selectedID)
{
if (layerInfo.SubLayerIds == null)
{
cmbboxItem = new ComboBoxItem();
cmbboxItem.Content = layerInfo.Name;
cmbboxItem.Tag = layerInfo.ID;
cmbboxLayers.Items.Add(cmbboxItem);
}
}
}
}