Dev GridControl 控件checkBox复选框,选中多行(三)

一、GridContorl显示chekbox

设置MultiSelectMode = CheckBoxRowSelect;

MultiSelect = True;

 二、获取checkBox选中行

   int[] rownumber = this.gridView1.GetSelectedRows();//获取选中行号;

   DataRow row =    this.gridView1.GetDataRow(rownumber[0]);//根据行号获取相应行的数据;


一、GridContorl显示chekbox

设置MultiSelectMode = CheckBoxRowSelect;

MultiSelect = True;

 二、获取checkBox选中行

   int[] rownumber = this.gridView1.GetSelectedRows();//获取选中行号;

   DataRow row =    this.gridView1.GetDataRow(rownumber[0]);//根据行号获取相应行的数据;


猜你喜欢

转载自blog.csdn.net/xwnxwn/article/details/79868781
今日推荐