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?例如。它应该从 8 开始,而不是从 0 开始。
DataGridView
简单地说,我认为您不能更改行的起始索引,但是有一个简单的解决方案
每次你想用 RowIndex 做某事时,只需添加例如 8
DataGridView1.Rows[(myIndex + 8)].DoSomething();