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:27:08 +0200

This seems exactly what they'd want - thanks.

Seems my problem, when searching was that searched for words like static, 
instead of fixed - thanks for correction.

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:52 PM
  Subject: Re: ASP.Net scrollable datagrid, but with static/unmoving column 
headers


  Here is one article on an older solution. There are tons of articles on this 
exact subject. This is not what I remember doing, it sort of is what you were 
describing in your original post as a sludge hammer solution but it might be 
the most familiar solution to you from what you were talking about so I am 
posting the URL.
  
http://datawebcontrols.com/faqs/CustomizingAppearance/ScrollableDataGridWithFixedHeader.shtml

  Rick USA
    ----- Original Message ----- 
    From: RicksPlace 
    To: programmingblind@xxxxxxxxxxxxx 
    Sent: Wednesday, July 28, 2010 11:28 AM
    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



__________ 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: