Click here to Skip to main content
15,912,329 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
We have to show the sale header and saledetails in the same grid.How we can able to achieve in the WPF datagrid.

We are having a dataset which is having saleheader and sale detail tables and we have given relations also in the dataset for the sale header and sale detail. If i drag and drop the saleheader datatable to a page only saleheader datagrid is created and we are not able to find the sale detail in the grid.


It should shows like a tree view. Main tree should have the sale header and if we drill down the one sale header row , we should able to see the full details of its sale details.

Please help us to acieve in the WPF datagrid .
Posted

1 solution

Hi,

I would recommend the use of a custom control containing ItemsControl. You can easily see how to do it in my article:

How to: Use the Master-Detail Pattern with WPF Hierarchical DataTemplate[^]

Best Regards,

Shai
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900