Dim title As TextBox = CType(e.Item.Cells(3).Control(0),TextBox)
Dim category As TextBox = CType(e.Item.Cells(4).Control(0),TextBox)
straql = "UPDATE book SET ='" & title.text & "'& category.Text & "' WHERE ID = " & DataGrid1.DataKeys.Item(e.ItemIndex)
Sub Button1_Click(sender As Object, e As EventArgs)
Dim chkCusID As CheckBox
Dim lblID As Label
Dim i As Integer
lblText.Text = ""
For i = 0 To myGridView.Rows.Count - 1
chkCusID = myGridView.Rows(i).FindControl("chkCustomerID")
lblID = myGridView.Rows(i).FindControl("lblCustomerID")
IF chkCusID.Checked = True Then
'*** Have lblID.Text ***'
Me.lblText.Text = Me.lblText.Text & "<br>" & lblID.Text
End IF
Next
End Sub