CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2006
    Posts
    10

    Red face Nested DataGrid Not Showing! datarelation prob?

    Background:
    I have a nested datagrid (see below), i want the Employee names to be shown and the nested table (containing the records that realate to the employee to be hiden.
    when a user clicks on the imagebutton i try show the column that contains the records.

    My problem:

    The child table will not display(Record), if i take the table out of the Master datagrid it will display etc.


    Tried solutions:

    I am (trying) to use a dataset with relationships and have looks at the following link:
    http://www.dotnet247.com/247referenc...le.aspx?id=155

    and all the threads here containing the words "datarelation" and also a second search for "nested datagrid"

    I can't download any new controls,
    Code:
    [+]---- Employee 1	   <---- only rows that will show on page load
    		 >Record 1		   <---- hiden until user clicks [+]
    		 >Record 2
    [+]---- Employee 2 
    		 >Record 1 
    		 >Record 2
    		 >Record 3
    		 >Record 4
    		 >Record 5
    In the Html code side of the webform i have added a <tr> and a <td colspan=3> to add the new row under the current row.
    Code:
     
    pseudo code :
    on master DataGrid data_bind 
    {
    	 bind child datagrid to hidden column
    }
     
    on clicking [+]expand button
    {
    	toggle expand button to [-] button
    	show hidden column containing child datagrid
    }
    Please help I'm going out of my mind!

  2. #2
    Join Date
    Mar 2006
    Posts
    10

    Re: Nested DataGrid Not Showing! datarelation prob?

    This issue is still not resolved any help / links would be great



    Regards
    cyph

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured