I want to display the grid view like this -(fig 1)
Sr.no Class ----Division------ Total
A B C
-----------------------------------
1. 1st 10 20 30 60
2. 2nd 20 10 40 70
-----------------------------------
Total 30 30 70 130
values shown are total_no_students in Division A,B,C..
and from table i get data like this-(fig-2)
Class A B C
1st 10 20 30
2nd 20 10 40
i created the gridview..but if i directly bind the data i get same as fig-2
how should i customize gridview so that it displays the data as fig-1
Apart from gridview if there is any other control that i can use please do suggest me
thank you
The bottom row will require a GridView footer.
Footer Example
For the column total the following example will solve your problem (check Rahul’s answer)
Row Total Example