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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T09:37:38+00:00 2026-05-24T09:37:38+00:00

i have my grid like this in jquery success: function(result) { $(‘#MyGrid tbody’).append(‘<tr><td>’ +

  • 0

i have my grid like this in jquery

success: function(result) {
    $('#MyGrid tbody').append('<tr><td>' + result.FileName + '</a></td><td><a href="#" class="remove">Remove</a></td></tr>');
}

now i want to add thead to MyGrid to which i need to add style property and inside thead i also need to add tr having style property. as like

 <thead style=""><tr style=""></tr></thead>

through jquery

also i need to remove that thead in another jquery function. so could you please provide me how to add thead and delete that thead in jquery which has tr inside it.

thanks,
michaeld

  • 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-24T09:37:39+00:00Added an answer on May 24, 2026 at 9:37 am

    Here’s how you create the thead:

    $('#MyGrid').append(
        $('<thead />').addClass('headerrow').append(
            $('<tr />').addClass('grouprow')
        )
    )
    

    Do you actually need to remove, or would hiding it be ok? If you’re happy to hide it:

    $('#MyGrid thead').hide();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have jQuery code which looks something like this on Button1 Click $('table.result_grid tbody
I have a Grid inside a Canvas defined like this: <Canvas x:Name=outerCanvas> <Grid Grid.Row=1
I have something like this in my xaml: <Grid> <Image Name=image Source=../../Images/DefaultImage.png HorizontalAlignment=Stretch VerticalAlignment=Stretch></Image>
We have two textBlocks like this: (we used .NET FW 3.0) <TextBlock Grid.Column=0 Name=tabName
I have this jQuery code: <script type=text/javascript> $(function() { $(.one-edition img).hover(function() { $(this).next(.editions-info-text).show(); },
Have you ever used jQuery Grid with google maps?, it seems like jQuery grid
I have a grid like this http://jqueryui.com/demos/selectable/#display-grid . How can I store a user
I have a grid laid out like so; +---------+---------+ | Image | Details |
I have an excel like grid where values can be typed referencing other rows
I have some filter and one grid.And grid have some buttons like modify/edit.I am

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.