This project is read-only.

Select a point but the Fid return is -1

Jul 2, 2012 at 10:58 AM

hi, all

   I select a point in the mappointlayer ,then use the code like this:

   IFeature feature =featurelayer.Selection.ToFeatureList()[0];

   int index = DataSet.Features.IndexOf(feature); the index equals -1,  why this happened? Is it a bug?

  if no, how to get right index of the selected feature !!!!

   Anyone willing to help would be greatly appreciated !