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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:58:23+00:00 2026-05-25T09:58:23+00:00

I am adapting an existing ASP.NET MVC 3 WebGrid to display more data. It

  • 0

I am adapting an existing ASP.NET MVC 3 WebGrid to display more data. It currently displays one level of data, but I need to show parent-child relationships in the grid. Is this possible, or will I have to look into a third-party control, or roll my own?

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

    If you want webgrid to do it by itself, then answer is no its not possible directly. Simple nested grids you can achieve like this… Razor Nested WebGrid

    To have entire grid inside another grid, you can use jQuery, AJAX multiple views to achieve this. On expand of any row call another action with ajax which will render child grid and not any other html. Use the resulted html to insert in a new row in the parent grid table. Something on these lines…

         $.ajax({
            url: childGridUrlString,
            type: 'post',
            async: true,
            timeout: 10 * 1000,
            success: function (data, textStatus, jqXHR) {
                 if (!data.Status) {
                     var $tr = $obj.closest("tr", $("#parentgrid"));
                     var $newTr = "<tr><td colspan=\"4\">" + data + "</td></tr>";
                     $("<tr><td>&nbsp;</td><td colspan=\"3\">" + data + "</td></tr>").insertAfter($tr);
                 }
             },
        });
    

    Take care of colspans as per number of columns you have in parent and child grid. Important thing, in built sorting feature of WebGrid doesn’t work properly with this type of parent child grid display.

    Off course, third party controls are always an option, but you will have to consider cost as well and even they will have some coding to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently in the process of adapting an existing iOS app into what will
i'm currently adapting an existing Symfony project to my needs and would like to
I am rewriting the existing C++ application and adapting it for Android environment. In
I have the following jQuery which I need adapting: $(document).ready(function(){ $(.rss-popup a).hover(function() { $(this).next(em).stop(true,
i'm adapting an existing web application to use with a touch scrren on a
I am in the process of getting an ASP.NET website project under version control,
I have followed the blog post written by Steve Sanderson at blog.codeville.net/2008/10/14/partial-requests-in-aspnet-mvc . It
I bought a non-wordpress theme that I'm currently adapting to wordpress. The only problem
I'm in the process of adapting Fluent NHibernate to our existing legacy app and
We are adapting our client side relatively complicated application (ActiveX / .net / Delphi

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.