mercredi 28 août 2019

How to uncheck a checked asp:CheckBox when another is checked in an asp:GridView

I have an asp:CheckBox column in an asp:GridView. I am trying to uncheck previously checked CheckBox when another one is checked using javascript. I have seen code dealing with 2 checkboxes but not in an asp:gridview. I am new to javascript so any help would be appreciated.

Here is the HTML code:

<asp:GridView ID="GridViewGroups" runat="server" >
   <Columns>
       <asp:TemplateField>
          <ItemTemplate>
            <asp:CheckBox ID="chkRow2" class="icheckbox" runat="server" />                                                                                                                                 
           </ItemTemplate>
        </asp:TemplateField>
    </Columns>                                                                                
</asp:GridView>   




Aucun commentaire:

Enregistrer un commentaire