Wednesday, July 13, 2005

How To Add Scroll Bar in ASPX Server Control

Use Division Tag to Add ScrollBar in any server Control in ASPX Page.

<div style=" OVERFLOW: auto; WIDTH: 800px; HEIGHT: 152px">

<!-- You can add any Contol here which you want to add Scroll Bar
Like : DataGrid , TextBox, Panel ..Etc -->

</div>

Note:One common problem comes with Datagrid the header part will also scroll
with scrollbar to fix that create one division for HTML table which contain header
only another division for Datagrid where header will be visible false (ShowHeader="False")
Have a Nice Day
Ritesh Kumar Kesharwani
Software Professional
Cell : 011-91-9845657636


Start your day with Yahoo! - make it your home page

No comments: