DatasetGrid data = m_workspace.Datasources[0].Datasets["DEM25"] as DatasetGrid;
ExportSetting setting = new ExportSetting();
setting.TargetFilePath = @"E:\aaaa.asc";
setting.SourceData = data;
setting.TargetFileType = FileType.GRD;
DataExport dataexport = new DataExport();
dataexport.ExportSettings.Add(setting);
ExportResult result = dataexport.Run();
代码的话如上,但是需要保证你这个数据是能正常导出的,如果在idesktop中就不能导出的话,那有组价也同样不能导出,你可以将你的数据发出来看一下,上传百度网盘发出来,如果数据不方便公开,可以将链接私信我