Re: ASP.Net scrollable datagrid, but with static/unmoving column headers

  • From: "Jacob Kruger" <jacobk@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 28 Jul 2010 22:37:09 +0200

JQuery?

I'm somewhat out of practice with this type of web development - 
obviously...<smile>

Stay well

Jacob Kruger
Blind Biker
Skype: BlindZA
'...fate had broken his body, but not his spirit...'

  ----- Original Message ----- 
  From: Jacques Bosch 
  To: programmingblind@xxxxxxxxxxxxx ; Program-l 
  Cc: ProgrammingBlind@xxxxxxxxxxxxx 
  Sent: Wednesday, July 28, 2010 10:02 PM
  Subject: Re: ASP.Net scrollable datagrid, but with static/unmoving column 
headers


  Well, somebody mentioned a MX data grid which I have never used.
  But what you could do is to put the datagrid in a div with overflow set to 
auto.
  Then, with jQuery, it should be quite trivial to clone the header row and 
insert it in another div right above the data grid's div and hide the original 
header row.
  With a little fiddling that should give you the static headers you are aiming 
for.

  Jacques
    ----- Original Message ----- 
    From: Jacob Kruger 
    To: Program-l 
    Cc: ProgrammingBlind@xxxxxxxxxxxxx 
    Sent: Wednesday, July 28, 2010 4:52 PM
    Subject: ASP.Net scrollable datagrid, but with static/unmoving column 
headers


    Don't think there are too many guys involved in/looking into ASP.Net on VI 
programming lists, but specifically, at the moment, trying to figure out how to 
implement static/unmoving column headers for an ASP.Net datagrid, with the 
specific issue being that since there are quite a few datarows being rendered 
in a datagrid, they want the column headers to stay static/floating above the 
then scrollable columns of data, and was just wondering if anyone had ideas off 
hand.

    My own would be to in fact implement a static HTML table above the 
datagrid, with the column headers in it, and then implement the datagrid in 
something like either an inline frame, or a normal frame to allow the browser 
to scroll up and down inside it, while still seeing the column headers above, 
but the primary issue so far is I don't seem to be able to query/find a 
rendition of the column widths etc. from the datagrid control, but have 
otherwise been thinking about in fact chucking out the datagrid control as 
such, and just something closer to older, classic ASP to in fact just render 
the HTML output version of something like this, and would then just base the 
column widths on something like a certain number of pixels/points per letter of 
the column name, and would then use something closer to the classic ASP/PHP 
outputting of the data table inside another frame or something.

    Thoughts/examples/suggestions?

    Stay well

    Jacob Kruger
    Blind Biker
    Skype: BlindZA
    '...fate had broken his body, but not his spirit...'



    __________ Information from ESET NOD32 Antivirus, version of virus 
signature database 5318 (20100727) __________

    The message was checked by ESET NOD32 Antivirus.

    http://www.eset.com



__________ Information from ESET NOD32 Antivirus, version of virus signature 
database 5321 (20100728) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Other related posts: