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
|