日期:2014-05-18 浏览次数:20868 次
private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e) { dataGridView1.Rows[e.RowIndex].Cells[0].Selected = true; }
------解决方案--------------------
private void dataGridView1_RowHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
{
dataGridView1.Rows[e.RowIndex].Cells[0].Selected = true;
}