DataGrid Multi Header

E

Etariq

Hi Coders

How Can You Build A Dynamic Multi Header GridView Control

thanks In advance
 
E

Etariq

what i mean is the Standard Grid View Has the Col Header from the DB and we
can Edit it after bounding , but i need some headers to have a top Level to
say Like Totals of ... and under it the Colmn name
Like this:



USD Volume

LBP Volume






Year

Retail
Cash
Total

Retail
Cash
Total
c/v in USD

Grand Total
c/v in USD
Net Cards
Issued (#)
Total Cards
Average
per Transaction USD

2005

536,
2,
3,

97,
15,325,
15,422,930
10,276,

13,
13,
12,
1





Or somthing like this :














Product Type



Branch
Lady Cards
Youth Cards
Gift Cards
Bonus Cards
Access 24
Access
Total
Total (%)

010 - bobo
52
59
50
1
2,044
3
2
7.90

011 - toto
5
22
9
0
218
0
254
0.91

012 - haha
2
2
9
0
126
1
139
0.50
 
B

Bruno Alexandre

so why dont you use the header template under a template field and use <br/>
to separete the lines?
like:

<asp:TemplateField SortExpression="whatever" >

<HeaderTemplate>
USD Volume<br />LBP Volume
</HeaderTemplate>

<ItemTemplate>
<%#Eval("catC")%>
</ItemTemplate>

<EditItemTemplate>
<asp:DropDownList DataSource="<%# getColCategories %>"
DataTextField="cTxt" DataValueField="cVal" runat="Server" ID="catC"
ValidationGroup="Update" />
</EditItemTemplate>

<FooterTemplate>
What you need in Footer
</FooterTemplate>

....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top