vb Code:
For i As Integer = 0 To gvItems.Rows.Count - 1 Dim cb As CheckBox = CType(gvItems.Rows(i).FindControl("cbSelected"), CheckBox) If cb.Checked Then 'my code here End If Next
Yes, cbSelected exists in every stinkin row in the grid view... yes, I have several instances of it checked... so, anyone have any clues why cb.Checked comes back as False every damn time??? For the love of chicken, all I'm trying to do is figure out which items in a GridView are selected and apply something to them. My code inside that cb.Checked thing works great... but it doesn't fire... hence my issue. Why doesn't this work?


Reply With Quote