(Solved) – SOLVED – Checkbox in gridview always false

  • by
(solved)-–-solved-–-checkbox-in-gridview-always-false

this is the Grid view:

  
                                    
                                        
                                            
                                                

And this is th VB code:

For Each row As GridViewRow In gv_remote.Rows
Dim ChkBoxRows As CheckBox = CType(row.FindControl("cb_select_remote"), CheckBox)
If ChkBoxRows.Checked Then
lblerr.Text = "Checked"
End If
Next

i try to get boolean value from “cb_select_remote”, but always return false, i try any solution from internet, but still not working, can you tell me what happen with my code? thanks

Leave a Reply

Your email address will not be published. Required fields are marked *