all groups > asp.net datagrid control > june 2006 >
You're in the

asp.net datagrid control

group:

DataGrid Multi Header


Re: DataGrid Multi Header Bruno Alexandre
6/30/2006 3:19:25 PM
asp.net datagrid control:
what do you want to say as multi header?

--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)


"Etariq" <etariq@msn.com> escreveu na mensagem
news:eXN2XdEnGHA.4296@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

DataGrid Multi Header Etariq
6/30/2006 4:20:29 PM
Hi Coders

How Can You Build A Dynamic Multi Header GridView Control

thanks In advance

Re: DataGrid Multi Header Etariq
7/1/2006 7:26:56 PM
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



[quoted text, click to view]

Re: DataGrid Multi Header Bruno Alexandre
7/1/2006 8:24:46 PM
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>

....


--

Bruno Alexandre
(a Portuguese in Københanv, Danmark)


"Etariq" <etariq@msn.com> escreveu na mensagem
news:uZJsNrSnGHA.2364@TK2MSFTNGP02.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button