We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to set the ScrollBar when the Freeze Columns exceeds the Client Area?

Platform: WinForms |
Control: GridGroupingControl |
Published Date: January 3, 2016 |
Last Revised Date: January 3, 2016

Problem

By default, GridGroupingControl is having support to freeze the visible columns. But the horizontal scrollbar will be hidden, if visible column is not visible within visible range. Please refer the below image for better understanding.

 

C:\Users\mohanraj.gunasekaran\Pictures\Freezecolumn.png

Solution

It can be achieved by customizing the ResizeEnd and HScrollPixelPosChanging event. In this customization, the range of columns will be removed from visiblecolumns range when scrollbar reaches that frozen column. These removed columns will be restored to visible range when scroll position is reached to those columns.

C#

 

VB

 

Screenshot

C:\Users\mohanraj.gunasekaran\Pictures\Freezecolumn2.png

 

Sample

C#: FreezeColumn_CS

VB: FreezeColumn_VB

 

2X faster development

The ultimate WinForms UI toolkit to boost your development speed.
ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon