Results 1 to 2 of 2

Thread: datagrid2 within datagrid1

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2007
    Posts
    694

    datagrid2 within datagrid1

    Hi,
    In the following xaml, you see that I am showing the Address field when a row of datagrid is clicked on.
    Question:
    I have a datagrid2 which I would like to be placed instead of the Address field.

    At present I am using the event:
    datagrid1_RowDetailsVisibilityChanged to populate datagrid2 for the selected row in datagrid1

    How do I replace the address field with the datagrid2 please? Can I place something like <datagrid2></datagrid2> instead of the <TextBlock Text="{}"... ?
    Thanks

    <dataataGrid.RowDetailsTemplate>
    <DataTemplate>
    <Border>
    <Border>
    <TextBlock Text="{Binding Address}" TextWrapping="Wrap"></TextBlock>
    </Border>
    </Border>
    </DataTemplate>
    </dataataGrid.RowDetailsTemplate>

  2. #2
    Frenzied Member MattP's Avatar
    Join Date
    Dec 2008
    Location
    WY
    Posts
    1,227

    Re: datagrid2 within datagrid1


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