IFeatureLayer pFeLayer = axMapControl1.get_Layer(0) as IFeatureLayer;
IDataLayer idata = pFeLayer as IDataLayer;
IDatasetName idataname = idata.DataSourceName as IDatasetName;
string path = idataname.WorkspaceName.PathName ;
axMapControl1.ActiveView.PartialRefresh(esriViewDrawPhase.esriViewAll, null, null);
Geoprocessor gp = new Geoprocessor();
gp.SetEnvironmentValue("workspace",path);
gp.OverwriteOutput = true;
ESRI.ArcGIS.AnalysisTools.Select pSelect = new Select();
pSelect.in_features = pFeLayer .FeatureClass;
pSelect.out_feature_class = @"E:\biancheng\3sdnMap\新地图\tiqu.shp";
pSelect.where_clause = "GRIDCODE>50";
gp.Execute(pSelect, null);
IWorkspaceFactory pWspF = new ShapefileWorkspaceFactoryClass();
IFeatureWorkspace pFW = (IFeatureWorkspace )pWspF.OpenFromFile(path,0);
IFeatureClass pFeatureClass = pFW.OpenFeatureClass("tiqu");
IFeatureLayer pFeatureLayer=new FeatureLayerClass () ;
pFeatureLayer.FeatureClass = pFeatureClass;
pFeatureLayer.Name = pFeatureClass.AliasName;
axMapControl1.AddLayer(pFeatureLayer );