c# how the make datagridview.selectRow = bindingsource.posit

本文关键字:bindingsource posit selectRow datagridview how the make | 更新日期: 2023-09-27 18:30:22

how the make datagridview.selectRow = bindingsource.position??

sorry, i have no idea.
the datagridview' rowindex is not equals to the bindingsource' position. 
it is because i have set a relation of the bindingsource.

有人有建议吗?

c# how the make datagridview.selectRow = bindingsource.posit

尝试使用

正确的语法 datagridview.selectedRow = datagridview.rows(bindingsource.position) 我相信bindingsource.position会返回一个整数,您尝试将其用作索引。