1、Run Designer
2、OptionsSelection->MultiSelect=true
3、OptionsSelection->MultiSelectMode=CheckBoxRowSelect
4、代码中如何获取选中的行:
int[] SelectRows = gridView1.GetSelectedRows();
数组里面将得到Row的Index;
示例:得到ID字段的内容
int id = Convert.ToInt32(gridView1.GetRowCellValue(index, "id"));
版权声明:本文为m593192219原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。