Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Binding DataGrid with DataTable

$
0
0

Datatable as below

OrderDate   OrderNumber   ProductCategory   Quantity   
2013-04-06IN13040001Sports100
2013-04-06IN13040001Music150
2013-04-08IN13040002Sports

250

2013-04-09IN13040003Music

50

.........

...

Want to Build a DataGrid with the following layout.
The first row is Header of datagrid

OrderDate   OrderNumber   Sports   Music   ...
2013-04-06IN13040001100150...
2013-04-07IN13040002250...
2013-04-08IN1304000350...
............

...

Any simple method to bind datatable like this? Thanks.




Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>