Sub grdUpdate(ByVal o As Object, ByVal e As DataGridCommandEventArgs)
'g the data from datagrid column "1"(First column on datagrid is zero) per row as user click and fill on txtbox txtName
txtid.Text = e.Item.Cells(1).Text
txtUsername.Text = e.Item.Cells(2).Text ' รับค่าจาก gridUpdate มาแสดงที่หน้า pageload
txtPassword.Text = e.Item.Cells(3).Text
txtFullname.Text = e.Item.Cells(4).Text
ddlDept.SelectedItem.Text = e.Item.Cells(5).Text
ddlpermition.SelectedItem.Text = e.Item.Cells(6).Text
Me.Image1.ImageUrl = e.Item.Cells(7).ToString
End Sub
ขอคำชี้แนะหน่อยครับ
Tag : .NET, Web (ASP.NET), VB.NET, Windows, Web Service