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 4085872
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:38:39+00:00 2026-05-20T18:38:39+00:00

HI All, I am working on grid view in C# ASP.net VS2010. In the

  • 0

Grid view display

HI All,

I am working on grid view in C# ASP.net VS2010. In the grid view I have added check box list. If i select a check box then a part of row should be selected and should get highlighted.

Please refer to uploaded image.
In this grid there are 3 rows: Groom, Clean n Pickup.
Now if I select “Clean” then partial row of it should get selected (In image, Yellow color).

Your any kind of guidline will be helpful.

Thanks,
Tanuja

  • 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-20T18:38:40+00:00Added an answer on May 20, 2026 at 6:38 pm

    code for you

    <script language="javascript">
    
    function Highlight(chk) {
    
    if (chk.checked) {
    
     $("#" + chk.id).parent("td").parent("tr").css("background-color", "Red");
    
    }else
    
    {
    
    $("#" + chk.id).parent("td").parent("tr").css("background-color", "white");
    
    }
    
    }
    
    </script>
    
    
    
    
    
    <asp:GridView ID="gvUsers" runat="server" AutoGenerateColumns="False" BackColor="White" BorderColor="#010101" BorderStyle="Groove" BorderWidth="1px" CellPadding="4">
    
    <Columns>
    
      <asp:TemplateField HeaderText="Roles">
    
         <HeaderTemplate>
    
             <asp:CheckBox ID="chkAll" onclick="javascript:SelectAllCheckboxes(this);" runat="server" />
    
         </HeaderTemplate>
    
          <ItemTemplate>
    
            <asp:CheckBox onclick="javascript:HighlightRow(this);" ID="chkDelete" runat="server" />
    
         </ItemTemplate>
    
       </asp:TemplateField>
    
     <asp:BoundField DataField="Email" HeaderText="Email" ReadOnly="True" />
    
     <asp:BoundField DataField="FirstName" HeaderText="First Name" ReadOnly="True" />
    
     <asp:BoundField DataField="LastName" HeaderText="Last Name" ReadOnly="True" />
    
    </Columns>
    
    <FooterStyle BackColor="White" ForeColor="#330099" />
    
    <RowStyle BackColor="White" ForeColor="#330099" />
    
    <HeaderStyle BackColor="#F06300" Font-Bold="True" ForeColor="#FFFFCC" />
    
    </asp:GridView>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working through the NerdDinner ASP.NET MVC 1.0 example. I have it all working
I have a ASP.Net web page with a grid view. I want to filter
I working on an application on ASP.NET C# I want to view all the
i created one grid view application, it's working fine now showing all images in
I am working with asp.net 2.0 project. I have a gridview in one of
I am working on an ASP.Net website and have a GridView displaying some data,in
I'm working on replacing an existing web grid in an ASP.NET web application, with
im working on an asp.net website with c#. I have a dropdownlist with data
I m working on ASP.NET MVC 4 application.I have a dashboard and my users
I am working on an asp .net project. I have a gridview and on

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.