private void dataGridView1_CellMouseEnter(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.Rows[e.RowIndex].Selected = true;
}
private void dataGridView1_CellMouseLeave(object sender, DataGridViewCellEventArgs e)
{
dataGridView1.Rows[e.RowIndex].Selected = false;
}
DataGridView行的鼠标移入移除事件
最新推荐文章于 2021-10-26 17:24:27 发布