/// <summary> /// 执行标准明细 取样信息 /// </summary> /// <param name="str"></param> private void NewMethod3(string str) { try { Bll_TQB_STD_SAMPLING bll_stdSampaing = new Bll_TQB_STD_SAMPLING(); DataTable dt_stdSampaning = bll_stdSampaing.GetList("C_STD_MAIN_ID='" + str + "'").Tables[0]; //冻结有焦点的列 gv_StdQY.Columns[0].Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Left; gv_StdQY.Columns[1].Fixed = DevExpress.XtraGrid.Columns.FixedStyle.Left; this.gc_StdQY.DataSource = dt_stdSampaning; gv_StdQY.BestFitColumns(); SetGridViewRowNum.SetRowNum(gv_StdQY); } catch (Exception ex) { MessageBox.Show(ex.Message); } }