Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed -
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

"immovable" Datagrid Header

 Post Reply Post Reply
Author
pnp! View Drop Down
Newbie
Newbie


Joined: 04 October 2002
Location: Argentina
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote pnp! Quote  Post ReplyReply Direct Link To This Post Topic: "immovable" Datagrid Header
    Posted: 02 September 2003 at 1:45pm


I want to have a datagrid with a "fixed" header.
What I mean is that you can scroll the content of the datagrid but the header remains in the same
position so as you can see the content and get a reference of what's that colum, seeing the header.

Do someone know how can I do that?

Thanks in advance!.

Pablo Pecora
Banco Itaś - Argentina

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2003 at 2:18pm
Sure, just create a < table > header and footer and place the datagrid inside.
Gone..
Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2003 at 2:21pm

something like

 < table >
   < tr >
     < td > This is a fixed header field < /td >
     < td > This is also a fixed header field < /td >
   < /tr >
   < tr >
     < td > This is the datagrid row, without the code < /td >
     < td > This is also a datagrid row, without the code < /td >
   < /tr >
 < table >

Of course, do NOT use the spaces in the HTML statements, but since the browser might parse it, I haven't done it.

Gone..
Back to Top
pnp! View Drop Down
Newbie
Newbie


Joined: 04 October 2002
Location: Argentina
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote pnp! Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2003 at 2:27pm
Originally posted by Diep-Vriezer Diep-Vriezer wrote:

something like

 < table >
   < tr >
     < td > This is a fixed header field < /td >
     < td > This is also a fixed header field < /td >
   < /tr >
   < tr >
     < td > This is the datagrid row, without the code < /td >
     < td > This is also a datagrid row, without the code < /td >
   < /tr >
 < table >

Of course, do NOT use the spaces in the HTML statements, but since the browser might parse it, I haven't done it.

I guess you didn't understood me...

When I said 'fixed' ... i referr to a header that remains in the same position despite of scrolling...

You keep on scrolling and the header remains there!

Back to Top
karp13 View Drop Down
Groupie
Groupie
Avatar

Joined: 03 January 2002
Location: United States
Status: Offline
Points: 152
Post Options Post Options   Thanks (0) Thanks(0)   Quote karp13 Quote  Post ReplyReply Direct Link To This Post Posted: 02 September 2003 at 2:29pm

If you do a search in the forums at http://www.asp.net this topic has been discused many times and there are some solutions posted.

Back to Top
Diep-Vriezer View Drop Down
Senior Member
Senior Member
Avatar

Joined: 06 August 2003
Location: Netherlands
Status: Offline
Points: 831
Post Options Post Options   Thanks (0) Thanks(0)   Quote Diep-Vriezer Quote  Post ReplyReply Direct Link To This Post Posted: 03 September 2003 at 2:28pm
Thats easy too, just create a iframe or something. It does req. a page per col.
Gone..
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.