Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello.
I have a problem I have this DataGrid
HTML
<DataGrid AutoGenerateColumns="False" 
                          x:Name="detailgrid" 
                          Height="100"
                          ItemsSource="{Binding}"
                          Visibility="Collapsed"
                          ToolTip="This Box shows the order details.">
                    <DataGrid.Columns>
                        <DataGridTextColumn Binding="{Binding ISBN}" 
                                            Header="ISBN" 
                                            x:Name="eisbn"
                                            IsReadOnly="True"/>
                        <DataGridTextColumn Binding="{Binding Quantity}" 
                                            Header="Quantity" 
                                            x:Name="equantity"
                                            IsReadOnly="True"/>
                        <DataGridTextColumn Binding="{Binding Price}" 
                                            Header="Price" 
                                            x:Name="eprice"
                                            IsReadOnly="True"/>
                        <DataGridTextColumn Binding="{Binding Total}" 
                                            Header="Total" 
                                            IsReadOnly="True" 
                                            x:Name="etotal"/>
                        <DataGridTextColumn Binding="{Binding Type}" 
                                            Header="Type" 
                                            x:Name="etype"
                                            IsReadOnly="True"/>
                    </DataGrid.Columns>
                </DataGrid>

It has it's item source What I want to do is to add a row(Footer) that shows the sum of the total inside the grid.
Posted

1 solution

 
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