How to get cell value from DataGridView in VB.Net?

前端 未结 5 1409
南旧
南旧 2021-01-06 19:54

I have a problem, how can i get value from cell of datagridview

----------------------------------
id     | p/w       | post       |
------------------------         


        
5条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-06 20:36

    In you want to know the data from de selected row, you can try this snippet code:

    DataGridView1.SelectedRows.Item(0).Cells(1).Value
    

提交回复
热议问题