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

  • From: "Jacob Kruger" <jacobk@xxxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Wed, 28 Jul 2010 18:17:24 +0200

Working in VS.Net 2008, and haven't looked into too many possibilities apart 
from trying to use code in C# to determine attributes of the datagrid, or the 
rendered table.

Have unfortunately not been doing too much in ASPX lately, so haven't really 
looked into list controls, tab panels etc. as of yet.

Did a few google searches, and while found some references to making use of 
Ajax etc. for a form of DHTML rendition, haven't found any real examples of 
exactly what am looking for since generally would expect you to just render the 
data rows in a form of paging or something, but they specifically want to 
render it scrollable.

Stay well

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

  ----- Original Message ----- 
  From: RicksPlace 
  To: programmingblind@xxxxxxxxxxxxx 
  Sent: Wednesday, July 28, 2010 5:28 PM
  Subject: Re: ASP.Net scrollable datagrid, but with static/unmoving column 
headers


  Hi: Have you looked into the ListView and, or, the FormView controls?
  I remember having done this but don't remember exactly what I did. It should 
be a very common senario so I am guessing there are Google articles on how to 
do this using the various ASP controls. 
  What have you looked at so far to accomplish this? 
  Are you familiar with Panel controls and Templated Controls and their use?
  Which version of VWD or Visual Sytudio are you working with?
  Rick USA
  columns in another panel. Then you should be able to set the ccolumn content 
to scroll without impacting the headings. At least that would be my first 
thought. I remember reading up on this situation some time back and had found 
and implemented solutions but I forget exactly what I did. Since I never worked 
with the DataGrid I am guessing I found what I needed using other controls like 
the panelcontrol, the ListView and, or FormView controls since I have used them 
off and on in my ASP Pages. .  
  Rick USA
    ----- Original Message ----- 
    From: Jacob Kruger 
    To: Program-l 
    Cc: ProgrammingBlind@xxxxxxxxxxxxx 
    Sent: Wednesday, July 28, 2010 10:52 AM
    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 5320 (20100728) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com

Other related posts: