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

Horizontal ScrollBar Problem in GridVIew

1 Answer 247 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Nick
Top achievements
Rank 1
Nick asked on 20 Sep 2014, 06:57 AM
Hi,
I am new in Winforms and I try an example with a radGridView to display some columns. What I want is to use the horizontal scroll bar to allow the user to see all the columns that don't fit in the display area of the grid. What it does now is to shrink the last columns to a minimum size and the user must go and try to resize the columns in order to see the last columns of the grid.


Thank you very much

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 23 Sep 2014, 02:45 PM
Hi Nick,

Thank you for writing.

RadGridView has a AutoSizeColumnsMode property, which has two options - Fill, which will take the grid's width and divide it by the number of the columns and the will set each column the same size, hence no scroll bars will be show. The other option is None (the default one) and when this is set, if the total columns width exceeds the grid's width, scroll bar is automatically shown.

Another interesting method for column sizing is the BestFit method of a column or the BestFitColumns method of the grid, which will size all columns on a way to fit their content. 

More information about these features is available on the following link: http://www.telerik.com/help/winforms/gridview-columns-resizing-columns-programatically.html.

Let me know how this works for you.

Regards,
Stefan
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
GridView
Asked by
Nick
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or