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.
Unfortunately, activation email could not send to your email. Please try again.

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

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

 

Article ID: Published Date: Last Revised Date: Platform: Control:
5941 01/03/2016 01/03/2016 Windows Forms GridGroupingControl
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.