How can we add scrollbar with GridView1 control in ASP.NET..
I am using VisualStudio2008...
Thanks
Printable View
How can we add scrollbar with GridView1 control in ASP.NET..
I am using VisualStudio2008...
Thanks
put the gridview control inside of a "div". then set the "overflow" property of the div to "auto".
I have tried it...Not working :(
Put it inside a panel and set the width and height properties of the panel and scroll bars to both. Here is some sample code
This will give you a scrollable grid view.Code:<asp:Panel ID="mypdanel" runat="server" ScrollBars="Both" Height="188px">
<asp:GridView ID="GridView1" runat="server" Height="169px" Width="918px"></asp:GridView>
</asp:Panel>
Warm Regards,
Thanks panel and style both working..