Best way to show summary Data
-
Friday, July 27, 2012 3:21 PM
What would be the best way to display an image like below.
I get the data in a datatable, I am currently using one of the third party grids but the formating in xaml to make the grid show the different colors and lines is quite a bit.
Is there any other control that's better fitted for this kind of summary report display
Even though the existence of God cannot be determined through reason, a person should wager as though God exists, because living life accordingly has everything to gain, and nothing to lose - Pascal Blaise
All Replies
-
Friday, July 27, 2012 6:19 PM
Datagrid in WPF support Detail View. So possibly you can use Datagrid control.
Else you can use FlowDocument in which you can have Table and design it according to your requirement.
http://msdn.microsoft.com/en-us/library/aa970909.aspx
Gaurav Khanna | Microsoft VB.NET MVP
-
Friday, July 27, 2012 7:17 PM
Thanks for the reply Khana,
I recieve the data from the service as a datatable with the rows and columns as shown in the image.
I am wondering about which would be easier for formating i.e. DataGrid or FlowDocument.
At runtime when I get the DataTable, I would perform the formating, colors, bold, inderline etc, based on some calculations.
Even though the existence of God cannot be determined through reason, a person should wager as though God exists, because living life accordingly has everything to gain, and nothing to lose - Pascal Blaise
-
Saturday, July 28, 2012 3:01 PM
For DataGrid you can add TemplateColumn and can have any control with formatting according to your requirement. Probably with DataGrid you might have to write less code. In FlowDocument you get more flexibility compared to DataGrid. If you decide to go with FlowDocument then following link may help.
http://msdn.microsoft.com/en-us/magazine/dd569761.aspx
Gaurav Khanna | Microsoft VB.NET MVP
- Marked As Answer by Elbino Sunday, July 29, 2012 9:18 AM
-
Sunday, July 29, 2012 9:18 AMThanks Again
Even though the existence of God cannot be determined through reason, a person should wager as though God exists, because living life accordingly has everything to gain, and nothing to lose - Pascal Blaise

