Finding in layer

Discussion created by aviabunin on Dec 8, 2010
Latest reply on Dec 9, 2010 by aviabunin
(arcgis engine in vs 2005 + c#)
I have axMapControl with document .mxd, wich has several groupped layers. And try to make searching in layer elements with certain value of attribute. Now I try use next code:
            ESRI.ArcGIS.esriSystem.IArray pArray;
            ESRI.ArcGIS.Carto.IFind pfind;
            ESRI.ArcGIS.Carto.IFeatureLayer layer;
            layer = (ESRI.ArcGIS.Carto.IFeatureLayer)axMapControl1.get_Layer(6) as ESRI.ArcGIS.Carto.IFeatureLayer;
            pfind = (ESRI.ArcGIS.Carto.IFind)layer;
            pArray = pfind.Find("???????", true, pfind.FindFields, axMapControl1.ActiveView.ScreenDisplay.CancelTracker);
            int i = pArray.Count;

But needed layer included in some group.
Did anybody help me - how i can get access to layer of certain group?
Thanks for any help or reference