在datagirdview_cellmousedown事件中先将CurrentCell(或CurrentRow)的Selected属性设为false,然后将鼠标右键点击的单元格(或行)设为CurrentCell(或CurrentRow),最后再将CurrentCell(或CurrentRow)的Selected属性设为true. 参考代码如下: //右键可选中单元格 private void dataGridView1_CellMouseDown(object sender, DataGridV…