Displaying Heirarchical Data in one row
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: Displaying Heirarchical Data in one row

  1. #1
    Join Date
    Feb 2010
    Posts
    1

    Displaying Heirarchical Data in one row

    I have a gridview that displays in the following manner. What I am trying to accomplish to is if you see the columns with the heading(s) Name, LegName, MedicalConditions, DateofBirth and id displays as two rows, as it normally would, but what I would like to do is to have all that data display in ONE Row because it all belongs to one registration. If you look at the two attachments, image one is how the data comes out of the DB normally. Image two is how I would like to be. Please keep in mind that this is a small example and I actually have more fields than just this, so I am looking for something extensible.

    I am really looking for help here and anyone that could point me in the right direction it would be greatly appreciated. Thanks for your help!
    Attached Images Attached Images   

  2. #2
    Join Date
    Feb 2010
    Posts
    1

    Smile Re: Displaying Heirarchical Data in one row

    You need to do from database side, either stored procedure or db script to group by the id ahead of time. It will display one row after you done that

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center