HOWTO Create a master detail relationship datagrid for Web like Tree Structure 
Author Message
 HOWTO Create a master detail relationship datagrid for Web like Tree Structure

I want to create a master detail relationship datagrid for Web.

Eg: (something similar to following output, it should be tree like
structure )

    DeptNo   DeptName   Location
    +     10           ABC            NY
     |__ EmployeeNo  EmployeeName Salary
                        1                    A                    3000
                        3                    C                    4000
    DeptNo   DeptName   Location
      +    20           XYZ            CA
      |__ EmployeeNo  EmployeeName Salary
                    2                    B                    13000

How to Go about. An Ex. HowToBuildMasterDetailsWebApp/main.aspx available on
microsoft site does not explain what i want to achieve.

Regards



Tue, 15 Feb 2005 18:12:50 GMT  
 HOWTO Create a master detail relationship datagrid for Web like Tree Structure
Hi,

I have used a treeview (structuretree) control once to achive something
similar. Each node would have to have a HTML-table with one row in. To make
it look good you will need to use style="Layout:fixed" (or something like
that) to force all the tables in the nodes to be aligned into columns.

I used the following tags to create the treeview, but I'm not sure if it is
a control that is shipped with VS.Net...


Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls, Version=1.0.2.116, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" %>

<STRUCTURETREE:TREEVIEW id="StructureTree" runat="server"
NAME="StructureTree" autopostback="false"></STRUCTURETREE:TREEVIEW>

Then of course a lot of code to make it happen (too much to present here),
let me know if you need help with a specific task, and I will try to find
the code snippet.

Hope it helps...

/Per Hultqvist

Quote:

> I want to create a master detail relationship datagrid for Web.

> Eg: (something similar to following output, it should be tree like
> structure )

>     DeptNo   DeptName   Location
>     +     10           ABC            NY
>      |__ EmployeeNo  EmployeeName Salary
>                         1                    A                    3000
>                         3                    C                    4000
>     DeptNo   DeptName   Location
>       +    20           XYZ            CA
>       |__ EmployeeNo  EmployeeName Salary
>                     2                    B                    13000

> How to Go about. An Ex. HowToBuildMasterDetailsWebApp/main.aspx available
on
> microsoft site does not explain what i want to achieve.

> Regards



Tue, 15 Feb 2005 19:25:51 GMT  
 HOWTO Create a master detail relationship datagrid for Web like Tree Structure
Hi,

You may check the following article and sample:
http://www.dotnetjunkies.com/tutorials.aspx?tutorialid=398  

Regards,
Elan Zhou
This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net?  http://www.gotdotnet.com



Sun, 20 Feb 2005 16:51:05 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Link multiple datagrids to a single record (Master\Detail Form with multiple details)

2. Master-Detail with 2 seperate detail sections per master record, CR.NET

3. How to do a simple master-detail relationship?

4. Master Detail Relationship, Grid Problem

5. how to make a master/detail datagrid

6. Master-Details Datagrids

7. Help on using a comgo box on a dataGrid that is the detail of a Master

8. master/detail datagrid form

9. Inserting detail rows in master-detail configuration (VB4)

10. Creating master Detail forms in vb6

11. How do I create a Master/Detail form in VB

12. Creating Master/Detail records

 

 
Powered by phpBB® Forum Software