This is a migrated thread and some comments may be shown as answers.

Scrollbar visibility in RadGridview

2 Answers 968 Views
GridView
This is a migrated thread and some comments may be shown as answers.
srivatsa haridas
Top achievements
Rank 1
srivatsa haridas asked on 03 Feb 2010, 07:30 AM
Hello
I have an  issue with my radgridview
Whenever i try to add 'n' no of items in a radgridview.. the scrollbar appears automatically.... which is desirable
I now delete all the items in the radgridview.. but the scrollbar is still visible... Is there any way i can force my scrollbars to hide ??

Regards
Srivatsa

2 Answers, 1 is accepted

Sort by
0
Ravi Prakash
Top achievements
Rank 1
answered on 03 Feb 2010, 09:42 AM
Hi friend,

                Try like this....
                 set    this.gridView.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;
                  or
                 set this     through your property window...

Thank You
Ravi
0
Martin Vasilev
Telerik team
answered on 05 Feb 2010, 05:00 PM
Hi Srivatsa,

In order to hide the scrollbars, you should set the HorizontalScrollState to AutoHide:
this.radGridView1.MasterGridViewTemplate.HorizontalScrollState = ScrollState.AutoHide; //or ScrollState.AlwaysHide

Best wishes,
Martin Vasilev
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
GridView
Asked by
srivatsa haridas
Top achievements
Rank 1
Answers by
Ravi Prakash
Top achievements
Rank 1
Martin Vasilev
Telerik team
Share this question
or