I have a checkbox column in my gridview control. I want to make it so on checkchanged it selects the row or deselects the row so the row is highlighted. Here is the code I have so far. I just need to select the row now.
Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As EventArgs)
Dim CB As CheckBox
CB = CType(sender, CheckBox)
If CB.Checked = True Then
'select the row so its highlighted
ElseIf CB.Checked = False Then
'unselect the row so its no longer highlighted