Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles GridView1.SelectedIndexChanged
txtID.Text = GridView1.SelectedRow.Cells(1).Text.Trim
txtPartID.Text = GridView1.SelectedRow.Cells(2).Text.Trim
' txtPartID.Text = GridView1.SelectedRow.Cells(3).Text.ToString
txtKanbanID.Text = GridView1.SelectedRow.Cells(3).Text.Trim
txtPartIDMatco.Text = GridView1.SelectedRow.Cells(4).Text.Trim
txtFunc.Text = GridView1.SelectedRow.Cells(5).Text.Trim
txtHandle.Text = GridView1.SelectedRow.Cells(6).Text.Trim
txtMirror.Text = GridView1.SelectedRow.Cells(7).Text.Trim.ToString
If btnAdd.Enabled = True And btnEdit.Enabled = True And btnDelete.Enabled = True Then
txtDisable()
Else
txtEnable()
End If
End Sub
Tag : .NET, Ms SQL Server 2005, Web (ASP.NET), VB.NET, Web Service