Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 234969
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T20:13:41+00:00 2026-05-11T20:13:41+00:00

I have a nested datagrid seen below. When I click lnkSec, I want checkboxes

  • 0

I have a nested datagrid seen below. When I click lnkSec, I want checkboxes of dgrIslem datagrid to be checked. How can I do it with javascript or Jquery?

<asp:datagrid id="dgrMenu" runat="server" Width="100%" GridLines="Horizontal" ShowHeader="False"
  Height="8px" BorderWidth="1px" BorderColor="Gainsboro" CellPadding="0" AutoGenerateColumns="False"
  AlternatingItemStyle-BackColor="#f5f5f5" SelectedItemStyle-BackColor="LightSteelBlue" ItemStyle-BackColor="White">
  <SelectedItemStyle BackColor="LightSteelBlue"></SelectedItemStyle>
  <AlternatingItemStyle BackColor="WhiteSmoke"></AlternatingItemStyle>
  <ItemStyle BackColor="White"></ItemStyle>
  <HeaderStyle ForeColor="White" CssClass="ms-formlabel DataGridFixedHeader" BackColor="SteelBlue"></HeaderStyle>
  <Columns>
    <asp:BoundColumn Visible="False" DataField="ID_MENU"></asp:BoundColumn>
    <asp:BoundColumn Visible="False" DataField="ID_PARENT"></asp:BoundColumn>
    <asp:BoundColumn Visible="False" DataField="DS_PAGE"></asp:BoundColumn>
    <asp:BoundColumn DataField="DS_MENU" HeaderText="Men&#252;">
      <HeaderStyle Width="200px"></HeaderStyle>
    </asp:BoundColumn>
    <asp:TemplateColumn>
      <ItemTemplate>
        <a href="#" id="lnkSec" onclick="javascript:SelectSubCheckboxes();">Seç/Kaldır</a>
      </ItemTemplate>
    </asp:TemplateColumn>
    <asp:TemplateColumn HeaderText="İşlemler">
      <HeaderStyle Width="150px"></HeaderStyle>
      <ItemTemplate>
      <table id="tablo">
      <tr><td>
        <asp:DataGrid id="dgrIslem" runat="server" Font-Size="7pt" Width="98%" AutoGenerateColumns="False"
          CellPadding="0" BorderWidth="0px" Font-Names="Verdana">
          <HeaderStyle Font-Size="1pt"></HeaderStyle>
          <Columns>
            <asp:TemplateColumn>
              <HeaderStyle HorizontalAlign="Center" Width="25px"></HeaderStyle>
              <ItemStyle HorizontalAlign="Right"></ItemStyle>
              <ItemTemplate>
                <asp:CheckBox id="chkSec" runat="server"></asp:CheckBox>
              </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn Visible="false" DataField="DS_ACIKLAMA"></asp:BoundColumn>
            <asp:BoundColumn Visible="false" DataField="ID_MENU_ISLEM"></asp:BoundColumn>
          </Columns>
        </asp:DataGrid>
          </td>
        </tr>
      </table>
      </ItemTemplate>
    </asp:TemplateColumn>
  </Columns>
</asp:datagrid>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T20:13:41+00:00Added an answer on May 11, 2026 at 8:13 pm

    Here is a sample with JQuery that I’ve done before. You can apply it to your grid too :

    <asp:GridView runat="server" ID="grid"></asp:GridView>
    
    <input type="button" onclick="uncheckCheckBoxes()" value="UnCheck" />
    &nbsp;
    <input type="button" onclick="checkCheckBoxes()" value="Check" />
    
    <script>
        function uncheckCheckBoxes()
        {
            var gridClientID = '<%= grid.ClientID %>';
            jQuery.each($("#" + gridClientID + " input[type='checkbox']"), function ()
            {
              this.checked = false;
            });
        }
    
        function checkCheckBoxes()
        {
            var gridClientID = '<%= grid.ClientID %>';
            jQuery.each($("#" + gridClientID + " input[type='checkbox']"), function ()
            {
              this.checked = true;
            });
        }
    </script>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some nested tables that I want to hide/show upon a click on
I have nested ObsevableCollections as seen below. For simplistic reason this is sample code
What if I have nested loops, and I want to break out of all
I have a number of tables, which have nested tables. I using jQuery to
I have a nested movie clip instance that I want to access. The path
I have nested quotes enabled in my private message system, but now I want
I have a linkbutton that is nested in a datagrid that is nested in
I want to bind a column of my DataGrid to a nested property. I
I have 2 datagrids. Both with checkboxes. I have a nested foreach loop that
I want to have nested views in a single view like a JTabbedPane. Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.