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

Vertical Scrollbar of RadGridView

2 Answers 283 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Erik
Top achievements
Rank 1
Erik asked on 30 Aug 2007, 02:02 AM
Telerik Team,
Vertical scrollbar of grid automatically appears when the height of grid cannot show all the rows. However, when it is so, the last column in the grid is overlapped by the vertical scrollbar. How can it be overcomed?

Help is much appreciated
thanks

2 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 03 Sep 2007, 01:18 PM
Hello eriksurya,

If you don't like last column to be overlapped, you can change the column sizing mode. This can be done trough setting the AutoSizeColumnMode  property to Fill. This way column widths will adjust so that they exactly fill the display area of the control:

this.radGridView1.MasterGridViewTemplate.AutoSizeColumnsMode = GridViewAutoSizeColumnsMode.Fill;

 

Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Erik
Top achievements
Rank 1
answered on 04 Sep 2007, 06:49 AM
Thanks for the help... It's really appreciated.

I just would like to stess on which area does the method of filling should be place.
Firstly i put in when the form is loading.. it doesn't work...
At last, i put the code after data is added to the grid then i refresh the grid and it works..
Thanks....
Tags
GridView
Asked by
Erik
Top achievements
Rank 1
Answers by
Jack
Telerik team
Erik
Top achievements
Rank 1
Share this question
or