Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scrollbar on a GridView

I want to put a scrollbar on a GridView in ASP.NET. I have created a master page. In this page I want a window with static height and width and inside this window put a GridView.

Is it possible to do this in Visual Studio?

like image 545
Nino Avatar asked Jan 22 '23 20:01

Nino


1 Answers

Why not put that grid in a div and add an overflow to it. So, once the grid is rendered, it will be enclosed in that div with scrollbars.

<div style="overflow: auto; width: 200px; height: 200px">
     <asp:GridView ID="GridView1".....
</div>
like image 179
Bhaskar Avatar answered Feb 02 '23 02:02

Bhaskar