This project is read-only.

I Want to add a layer to a MapGroup, But it can not be select in the mapwindow

Aug 15, 2014 at 9:07 AM
Edited Aug 15, 2014 at 9:08 AM
Hello,this is my code:
FeatureSet fs = new FeatureSet(FeatureType.Polygon);
fs.DataTable.Columns.Add(new DataColumn("序号", typeof(string)));
fs.SaveAs(path, true);
foreach (MapGroup mg in MapControl.MapFrame.GetAllGroups())
                if (mg.LegendText == doubtType)
I add the layer success,then i add some features into this layer,and it is display well in the mapwindow,but when i want to select some features in this layer,the error"No layers are currently selectable layers active in the legend. Select the layer or group in the legend for which selection should occur."appear,and i can not select anything in this layer.but when i load the .dspx file again,it can be work…… I don not know where is the problem,my english is very bad,i hope you can understand me and help me to solve this problem,thanks very much!