| | |
| | | btnIn.Click += (s, e) => |
| | | { |
| | | var list = new List<string>(); |
| | | for (var i = 0; i < gridView1.DataRowCount; i++) |
| | | int[] rows = this.gridView1.GetSelectedRows();//先获取选择行的行号 |
| | | DataTable dt = this.gcMain.DataSource as DataTable;//得到GridControl的数据源 |
| | | foreach (int idx in rows) |
| | | { |
| | | var checkBox = gridView1.GetRowCellDisplayText(i, "gvChk"); |
| | | if (checkBox == "Checked") |
| | | { |
| | | var _guid = gridView1.GetRowCellValue(i, "guid") |
| | | .ToString(); |
| | | list.Add(_guid); |
| | | } |
| | | string _guid = dt.Rows[idx]["guid"].ToString(); |
| | | list.Add(_guid); |
| | | } |
| | | UpdateParent?.Invoke(this, |
| | | new UpdateParentEventArgs { StringList = list }); |