排序 DataTable dtlDOHFLI = (DataTable)_pkgBusiData.OutData["FDWDOHLIST"]; if (dtlDOHFLI.Rows.Count > 0) { DataView dv = dtlDOHFLI.DefaultView; dv.Sort = "DOHID Desc"; DataTable dt = dv.ToTable(); gvDohList.ExtRecordCount = dt.Rows.Count; gvDohList.ExtDataBind(dt); }//筛选DataTable dtlFLILsit = (DataTable)_pkgBusiData.OutData["FDWFLILIST"]; if (dtlFLILsit.Rows.Count > 0) { DataTable dtNew = dtlFLILsit.Clone(); //复制数据源的表结构 DataRow drs = dtlFLILsit.Rows[0]; dtNew.ImportRow(drs); gvFliList.ExtRecordCount = dtNew.Rows.Count; gvFliList.ExtDataBind(dtNew); }