Friday, January 4, 2008

How To Create Scrollable Micro Windows in Asp.net

Here’s a quick sample that demonstrates the technique. It uses a div tag and relevant sizing and overflow attributes to define the micro window. Nested between the opening and closing <div> tags is the content we want to encapsulate (in this case, the HTML from our data grid).
<div style="width: 100%; height: 200; overflow: auto;">
           <asp:DataGrid ID="MyDataGrid" runat="server" />
       </div>

No comments:

Post a Comment