Master Detail GridView?

Posted on 2009-05-21
Medium Priority
Last Modified: 2012-05-07
I have a company that can have many point of contacts.

company is 1 to many pocs

I would like to build a grid for



Any help would be amazing.
if (!Page.IsPostBack)
                DataSet DSAssociateCompanies = new DataSet();
                DSAssociateCompanies = TicketLogic.GetAfftectedCompanyByTicketID(ticketID);
                grdTicketAffectedCompanies.DataSource = DSAssociateCompanies;
   if (!Page.IsPostBack)
                DataSet DSAssociatePOCs = new DataSet();
                DSAssociatePOCs = TicketLogic.GetAfftectedPOCsByTicketID(ticketID);
                grdTicketAffectedPOCs.DataSource = DSAssociatePOCs;

Open in new window

Question by:mathieu_cupryk
  • 2

Expert Comment

ID: 24450503
Instead of Master Detail Grid view try a Treeview control available in Navigation Controls in Toolbox.
However still if you want to use gridview then use a gridview and use HTML formatiing to format your data as needed. With javascript you can easily write code to display or hide certain contents on a click. So you can actually achieve a windows explorer directory expand/collapse kind of functionality with custom javascript and datagrid. However you will have to load all data in one go.
With treeview control you have the option to load the data on need basis i.e. when user expands a tree node.
So choose what suits you better!!
I would recommend not to go for any 3rd party grid controls unless its unachieveable through built in tools.
LVL 18

Accepted Solution

David Robitaille earned 2000 total points
ID: 24450510
i`m not sure to understand what you are talking about, but it`s look like nested gridview.
here an example of "nested gridview":
Is that what you are looking for??? If yes, just type "nested gridview" in google and you will have many example. I could also provide more help on that subject, but i need you to start and give more info on where you are blocking.

Author Comment

ID: 24455181
this looks cool but.  we use to use the work the master-detail datagrid back in the day.
LVL 18

Expert Comment

by:David Robitaille
ID: 24456403
ok, but what is your question then????

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …
The video will let you know the exact process to import OST/PST files to the cloud based Office 365 mailboxes. Using Kernel Import PST to Office 365 tool, one can quickly import numerous OST/PST files to Office 365. Besides this, the tool also comes…

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question