I was wondering if there are any additional header options for a gridview?
I have a grid whos query brings back 4 pieces of information for each of the past 6 months.
So it resembles:
Curr...Prev...Diff...% | Curr...Prev...Diff...% | Curr...Prev....Diff...% etc.
The caption is being used for the name of the grid. But above each group of Curr...Prev...Diff...%, I want to show what month it represents.
So it would look like this:
..............June................|..............May..................|..............April...............| etc.
Curr...Prev...Diff...% | Curr...Prev...Diff...% | Curr...Prev....Diff...% etc.
What are my options? I guess I could use the caption area and the put the name of the grid above it in a label.
But this will only look good if I predifine these fields as fixed fields so they don't shrink or grow depending on the data.
But are there any other options, like sub headers group headers in a gridview?
Thanks!
Instead of Grid, Use
DataList control.
Set RepeatDirection to Horizontal and Set RepeatColumns to 6
Make your custom layout where you put heading of Month and below it show its details.
Regards
沒有留言:
張貼留言