DataGridView control

DataGridView control

The class of the current row

DataGridViewRow

Get the current row

DataGridView对象.CurrentRow

Get the currently selected row collection

DataGridView.SelectedRows

Get all cells in the current row

DataGridView对象.CurrentRow.Cells

Get the cell with subscript n among all cells in the current row

DataGridView对象.CurrentRow.Cells[n]

Get the value of a cell object

单元格对象.Value

Get the cell of the specified row and column

DateGridView对象[列索引,行索引]

Get the currently selected cell

DataGridView对象.CurrentCell

Get the row index of the row of the cell

单元格.RowIndex

Get the selected cell collection

DateGridView对象.SelectedCells

Get the cell with the nth index in the selected cell set

DateGridView对象.SelectedCells[n]

Guess you like

Origin blog.csdn.net/qq_50722361/article/details/110921092