dgvYourDataGridView.ScrollBars = ScrollBars.Vertical;
...for horizontal:
dgvYourDataGridView.ScrollBars = ScrollBars.Horizontal;
...for both:
dgvYourDataGridView.ScrollBars = ScrollBars.Both;How do i add scroll bar to gridview (asp.net 2.0) from code (server side)?
Amazing I didn't find any property ';ScrillBars'; associated with GridView Control????????
Report Abuse
How do i add scroll bar to gridview (asp.net 2.0) from code (server side)?
One way is to add the gridview to an asp:Panel control, and set the desired Width and Height for the Panel with ScrollBars property set to Vertical.
E Screw
No comments:
Post a Comment