Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > DataGrid Multi Header

Reply
Thread Tools

DataGrid Multi Header

 
 
Bruno Alexandre
Guest
Posts: n/a
 
      06-30-2006
what do you want to say as multi header?

--

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


"Etariq" <> escreveu na mensagem
news:...
> Hi Coders
>
> How Can You Build A Dynamic Multi Header GridView Control
>
> thanks In advance
>
>



 
Reply With Quote
 
 
 
 
Etariq
Guest
Posts: n/a
 
      06-30-2006
Hi Coders

How Can You Build A Dynamic Multi Header GridView Control

thanks In advance


 
Reply With Quote
 
 
 
 
Etariq
Guest
Posts: n/a
 
      07-01-2006
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



"Bruno Alexandre" <> wrote in message
news:...
> what do you want to say as multi header?
>
> --
>
> Bruno Alexandre
> (a Portuguese in Københanv, Danmark)
>
>
> "Etariq" <> escreveu na mensagem
> news:...
>> Hi Coders
>>
>> How Can You Build A Dynamic Multi Header GridView Control
>>
>> thanks In advance
>>
>>

>
>



 
Reply With Quote
 
Bruno Alexandre
Guest
Posts: n/a
 
      07-01-2006
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>
<aspropDownList 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" <> escreveu na mensagem
news:...
> 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
>
>
>
> "Bruno Alexandre" <> wrote in message
> news:...
>> what do you want to say as multi header?
>>
>> --
>>
>> Bruno Alexandre
>> (a Portuguese in Københanv, Danmark)
>>
>>
>> "Etariq" <> escreveu na mensagem
>> news:...
>>> Hi Coders
>>>
>>> How Can You Build A Dynamic Multi Header GridView Control
>>>
>>> thanks In advance
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header files with "header.h" or <header.h> ?? mlt C++ 2 01-31-2009 02:54 PM
Any way to reorder how a datagrid is drawn (header/footer/items vs.header/items/footer)? Henrik ASP .Net Datagrid Control 1 07-06-2006 12:23 AM
How to make multi-Row header in the datagrid vaidas gudas ASP .Net 2 07-08-2004 01:53 PM
Multi row header in Datagrid William Gower ASP .Net Datagrid Control 7 06-09-2004 05:27 PM
Formatting Datagrid Multi-Header Ed ASP .Net 1 04-22-2004 02:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57