About the scrolling Datagrid

Recently I published a nice trick about scrolling the content of a Datagrid and keeping the header visible all the time.

I am working on one improvement, replacing the htc file by a normal Javascripts script.

This take some good shape now, and I should be able to publish this code soon.
Another thing about the tip, is that it doesn't work with SmartNavigation.
Maybe it will without the htc, I don't know. The other annoyance is the tables look pretty ugly if you don't have any records to show.

7 Comments

  • How are you coming along with the Javascript portion of this functionality? We use both netscape and IE here and it would be very helpful for us. Right now, our only solution for scrollable datagrids was to put them within a DIV.



    Thanks,

    Ron

  • Ron the DIV idea is good but the problem is that you lost the titles of your grid with this system.

    I will try to publish the Javascript code tomorrow (if I find some time ;-))

  • Thanks --> I know that is a problem with the DIV. We are currently reproducing the headers in a table above the datagrid... but sometimes they don't align, etc... This idea is a much better idea. I was able to get the .htc file to work, but it will not work in Netscape. Thanks for your prompt response Paschal - it is greatly appreciated!!!

  • I have to say that the horizontal and vertical scrolling accomplished here is awesome. Everywhere else i look, only vertical scrolling is addressed.

  • Is there any place that I can see this code in action?

  • Does this "freeze" the first column, or a set of columns as well?



    Looks like it would freeze the header as you scroll down and attach the header to the associated columns as you go across.



    However, as I go a across, the whole thing would scroll and I'd lose my context as far as which row I am looking at...? Thanks!

  • Hi,

    I have to create a datagrid in ASP.net. the special task required is to freeze the first two column and rest should scroll.



    Please tell me how to do this



    Thanks,

    chandrashekharm@cressanda.com

Comments have been disabled for this content.