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

  • SEARCH
  • Home
  • 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

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you running on OS 3.0? I saw the same… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer It looks like you need to register Apache::Session::Memcached with Apache::Session::Wrapper,… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer Use DATENAME or DATEPART: SELECT DATENAME(dw,GETDATE()) -- Friday SELECT DATEPART(dw,GETDATE())… May 12, 2026 at 1:19 am

Related Questions

I have a page designed with many HTML Tables which are hidden or displayed
I have a web report needs to return multiple products from different regions. The
Whats is the best method to create nested checkboxlists in ASP.net? Should I be
I have a nested function to show/hide paragraphs news-ticker-style. The problem is that when

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.