How can i get the value from the ID field of the database that is linked to the datagrid ?
| Protected Sub ToggleRowSelection(ByVal sender As Object, ByVal e As EventArgs) |
| CType(CType(sender, CheckBox).Parent.Parent, GridItem).Selected = CType(sender, CheckBox).Checked |
| Dim item As GridDataItem = TryCast((TryCast(sender, CheckBox)).Parent.Parent, GridItem) |
| Dim currentItemNumber As Integer = item.ItemIndex 'This works |
| End Sub |
I can get the itemindex but can't seem to get info from the columns