Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法关注最新选择的DataGridView允许多项选择的行?
DataGridView
我在用
dataGridView1.Rows[Index].Cells[Index].Selected = true;
它正在选择行但不聚焦。
Try
dataGridView1.CurrentCell = dataGridView1[Index,Index];
Row selection is independent of focus.