如何编写函数以在选中复选框时获取行的值。我正在使用下面的代码
动态创建复选框列DataGridViewCheckBoxColumn checkColumn = new DataGridViewCheckBoxColumn();
checkColumn.Name = "X";
checkColumn.HeaderText = "Select";
checkColumn.Width = 50;
checkColumn.ReadOnly = false;
checkColumn.FillWeight = 10; //if the datagridview is resized (on form resize) the checkbox won't take up too much; value is relative to the other columns' fill values
dataGridView5.Columns.Add(checkColumn);
如何编写check column
函数来获取所选的行值。