Master Detail GridView?

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


company
[]

pocs
[]

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

Open in new window

mathieu_cuprykAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

prashantagarw10Commented:
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.
Cheers!!!!
0
David RobitailleAnalyst ProgrammerCommented:
i`m not sure to understand what you are talking about, but it`s look like nested gridview.
here an example of "nested gridview":
http://www.codeproject.com/KB/aspnet/EditNestedGridView.aspx 
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.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mathieu_cuprykAuthor Commented:
this looks cool but.  we use to use the work the master-detail datagrid back in the day.
0
David RobitailleAnalyst ProgrammerCommented:
ok, but what is your question then????
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.