1. How to assign to gridview
With DataGridView1.Rows(0)
.Cells(0).Value = "E001"
.Cells(1).Value = "Thy Yuthear"
.Cells(2).Value = "Male"
End With
2. How to retreive value from GridView when select
Event: DataGridView1_CellMouseClick
MsgBox(DataGridView1.Rows(e.RowIndex).Cells(0).Value.ToString())
No comments:
Post a Comment