YUIAspNet controls for ASP.NET Ajax

DataTable with fixed header

In this example, the grid has a fixed height, using the Height attribute of the DataTable control.

You can activate the scrollable grid by specifying the width or the height.

Be aware that, if you use the scrollable grid, YUI will actually create 2 tables for you: one for the headers, one for the content.

You should be aware that column resizing doesn't work as expected. Also, I would recommend you to always provide a width for the grid's columns.