摘要:
现在就只发现使用DataGridView的CellMouseDown事件来实现右键选中行。您是否还有更好的方法呢?一起探讨!!!private void dgvTest_CellMouseDown(object sender, DataGridViewCellMouseEventArgs e) { if (e.RowIndex == -1 || e.ColumnIndex == -1) return; if (e.Button == MouseButtons.Right) { DataGridView dgv = (DataGridView)sender; dgv.ClearSelection 阅读全文
posted @ 2011-03-08 20:25
深秋
阅读(570)
评论(0)
推荐(0)
浙公网安备 33010602011771号