嘿伙计们,所以我正在尝试接收最后编辑的单元格的列/行但是当我使用以下代码时,我收到的是我接下来选择的单元格(通过单击),因为它是被选中的单元格.
有什么办法吗?也许我只是没有适合 dataGridView 的属性
private void dataGridView1_CellEndEdit_1(object sender, DataGridViewCellEventArgs e)
{
int column = dataGridView1.SelectedCells[0].ColumnIndex;
int row = dataGridView1.SelectedCells[0].RowIndex;
}