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

前端 未结 5 1376
南旧
南旧 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:43

    The line would be as shown below:

    Dim x As Integer    
    x = dgvName.Rows(yourRowIndex).Cells(yourColumnIndex).Value
    

提交回复
热议问题