Hi all,
I am having problems with this code:
For Each ri In gvGameStats.Rows
If ri.RowState = DataControlRowState.Selected Then
CType(ri.FindControl("txABCs"), TextBox).Text = CType(ri.FindControl("txHRs"),
TextBox).Text + 1
Exit For
End If
Next
In another part of my code, I make the next row in my gridview as the selected
row. This seems to work since my backcolor changes to the color I use for the
SelectedRowStyle-BackColor property. I want to check each row and see if it is
selected. This works great for the first row but on every other row the
rowstate = 3 which means it is an alternate row. Is there any way to to check
each row and see if it is selected whether it is an alternate row or not?
Thanks,
Bob
[Non-text portions of this message have been removed]