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

GridView Horizontal Scrolling

1 Answer 208 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joseph Jefferson
Top achievements
Rank 1
Joseph Jefferson asked on 17 Aug 2007, 07:19 PM
Hi,
This may be a simple question but I couldn't find anything about it thus far.  I am creating a forms application (.NET 2.0) and am using your GridView for winforms control.  The grid has a large number of columns and so I would like to have the grid show horizontal scrollbars.
What do I have to do in order to enable horizontal scrolling?  When the grid is displayed currently and I resize the columns, the other columns get smaller and thus cannot be read.

What must be done to enable horizontal scrolling either always or when the width of the grid goes beyond a certain threshold?

Thanks.
Joseph

1 Answer, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 20 Aug 2007, 12:55 PM
Hi Joseph,

RadGridView implements different column sizing modes. In your case the grid is in GridViewAutoSizeColumnsMode.Fill mode. To enable horizontal scrolling change AutoSizeColumnsMode of MasterGridViewTemplate and set it to None:

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

Sincerely yours,
Jack
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
GridView
Asked by
Joseph Jefferson
Top achievements
Rank 1
Answers by
Jack
Telerik team
Share this question
or