Scrollin', scrollin', scrollin, rawhide!
I got the chance to check out Robert / Interscape's new ScrollingGrid control today. It answers the age-old question--no, not “Which came first, the chicken or the egg”--of how do I put a scrollbar on my Datagrid, but keep the column headings visible at the top.
I've seen some other solutions to this issue, but this control is particularly nice because it wraps everything up for you in a server control, so you don't have to add in a lot of special extra logic to your page. The source code is also available to purchase, which should be a great example of adding client-side code to a server control, I know I'm curious to take a look and see how they did it all.Key advantages:
- Cross-browser compatible. Beats the IE-only solutions that are out there. I tested it in Opera and it worked great.
- Remembers position when you postback (optional--uses client scripting)
- Easy to take an existing Datagrid and upgrade to use this control so that you can have scrolling.
- Cheap! $9.95 is really reasonable for a server control.
One caveat, according to the User Guide that comes with the control, it may not work properly with AutoGenerated columns, so keep that in mind when evaluating this control. But all in all, this looks like a handy control that should be useful for a whole lot of people.