1 //获取当前焦点行该列的值 2 1、this.viewCateMonthTarget.GetFocusedRowCellValue(colOrgName).ToString(); //colOrgName自定义的列名 3 4 2、this.viewCateMonthTarget.GetFocusedRowCellValue("ORG_NAME").ToString();//ORG_NAME绑定的列 5 6 3、this.viewCateMonthTarget.GetFocusedRowCellValue(DE.BtCateTarget.TARGET_VALUE).ToString();//与2同理 7 8 //当前焦点行所在位置(返回行号) 9 int i =view.FocusedRowHanle; 10 11 //获取当前焦点行的数据 12 1、DataRow dr = view.GetDataRow(view.FocuedRowHanle); 13 14 2、GetFocusedRow(); 15 16 //根据行号获取行数据 17 GetRow(行号); 18 19 //给当前行单元格赋值 20 view.SetFocusedRowCellValue(要赋值的列名,值);
关于DevExpress GridView的获取数据的方法
猜你喜欢
转载自www.cnblogs.com/Swaggy-yyq/p/12060713.html
今日推荐
周排行