DataTable data = DAL.XXDA.EDIT.spda.get("SelectAll", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "");
//创建一个新列
DevExpress.XtraGrid.Columns.GridColumn con = new
DevExpress.XtraGrid.Columns.GridColumn();
con.FieldName = "item_no";//对应邦定的
数据源名称
con.Name = "编号";
con.Caption = "编号";//显示给用户的名称
con.Visible = true;
con.VisibleIndex = 0;//显示列的位置
this.gridView1.Columns.Add(con);
con = new
DevExpress.XtraGrid.Columns.GridColumn();
con.FieldName = "barcode";
con.Name = "条形码";
con.Caption = "条形码";
con.Visible = true;

con.VisibleIndex = 1;
this.gridView1.Columns.Add(con);
con = new DevExpress.XtraGrid.Columns.GridColumn();
con.FieldName = "item_name";
//con.Name = "商品名称";
con.Caption = "商品名称";
con.Visible = true;
con.VisibleIndex = 2;//
this.gridView1.Columns.Add(con);
//邦定
this.gridControl1.DataSource = data;
//设置行标题的宽度
gridView1.IndicatorWidth = 60;
//获取单元格的值
string str=this.gridView1.GetRowCellDisplayText(0, this.gridView1.Columns[0]);