简体   繁体   中英

How do you programmatically check a checkbox column in a datagridview? vb.net

我正在遍历datagridview中的行,并且需要在某些记录的复选框列中选中复选框,但是我不知道怎么办?

I was able to do this by using the following code:

 Dim CurRow As Integer = DataGridView1.CurrentRow.Index

    DataGridView1(0, CurRow).Value = True

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM