Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > ASP or HTML - how to freeze columns in pivot table

Reply
Thread Tools

ASP or HTML - how to freeze columns in pivot table

 
 
Kamyk
Guest
Posts: n/a
 
      12-16-2004
Hello all!

I have created a pivot table using ASP and HTML language. I have based on a
crosstab query created in MS Access 97. My pivot table looks excellent. Is
there any possibility to freeze first three columns which are static,
because the whole report takes a lot of space and I have to scroll right to
see the rest of values, but then I cannot see the static descriptions. My
reports looks like this:

Status | Wage | Target | 200441 | 200442 | 200443 | 200444 | 200445 etc
C01 1 85% 10% 20% 70% 67%
99%
C02 4 85% 12% 32% 17% 71%
49%

I want to freeze three columns: "Status", "Wage" and "Target". How can I
make this? The procedure of generating a pivot table, which I made in ASP is
complicataed,
so I don`t know if it is easy to freeze these columns.

Thank you in advance for your posts
Marcin from Poland


 
Reply With Quote
 
 
 
 
Andy Dingley
Guest
Posts: n/a
 
      12-16-2004
On Thu, 16 Dec 2004 19:47:03 +0100, "Kamyk"
<> wrote:

>Is there any possibility to freeze first three columns which are static,


There are two ways to do this.

One, which is fairly easy, is to use frames. This is an appropriate
time to use frames. Put the fixed part in one frame, the scroling
part in another, then just let the normal scrolling mechanism take
care of it.

Frames have a problem for you. Your database query is long and
complex, so you don't want to run it twice, once for each frame. So
instead generate it from within the frameset page and store the
results in the session object. Then your frame pages can use this
stored content to generate their output very simply. (the rest
requires some ASP knowledge, which you might already have, or you can
ask again).


The second way, perhaps better, is to use your own scrolling, by using
client-side Javascript and switching individual columns on and off
through CSS and the display:none; property.

This is perhaps easier, but it relies on the users having Javascript
enabled. This isn't too bad though, because you can easily make this
default to all columns being visible.

You should also use CSS @media print {} to make all the table columns
displayed for printing.
--
Smert' spamionam
 
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
pivot table in asp.net using sql dataset kingster ASP .Net 3 09-29-2010 10:16 PM
How to Freeze Columns in a html table Using Javascript and HTML srinivas Javascript 0 11-18-2005 07:30 AM
input data in asp.net and analysis with pivot table Grey ASP .Net 1 09-24-2004 01:23 PM
Pivot table function in asp.net Grey ASP .Net 0 09-24-2004 07:20 AM
MS Excel - How can I summarize a table? Will Pivot Table Reports do this for me? hugh jass Computer Support 3 09-10-2003 11:02 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