private void dgv_list_CellClick(object sender,
DataGridViewCellEventArgs e)
{
dgv_list.row[e.rowindex].selected = true;
}
//第二种方法
设置DataGridView的SelectionMode属性为FullRowSelect 实现左键点击选取整行
2022-04-10 01:15:49
private void dgv_list_CellClick(object sender,
DataGridViewCellEventArgs e)
{
dgv_list.row[e.rowindex].selected = true;
}
//第二种方法
设置DataGridView的SelectionMode属性为FullRowSelect 实现左键点击选取整行