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

GC Scrollbar update problem

Thread ID:





90246 Sep 23,2009 10:06 AM UTC Sep 28,2009 10:08 AM UTC WinForms 3
Tags: GridControl
Alexey Salmin
Asked On September 23, 2009 10:06 AM UTC


I'm using GridControl with the columns which can be hidden/revealed with SetColHidden(,,)/ColHiddenEntries.Clear(). When the columns are hidden the horizontal scrollbar updates automatically to the actual width, but when the previously hidden columns are revealed the scrollbar remains the same and right most columns cannot be viewed.

UpdateScrollBars() doesn't work, neither the setting of HScrollBar.Maximum back to the value of currently displayed columns.

Thank you,

Jisha Joy [Syncfusion]
Replied On September 24, 2009 08:33 AM UTC

Hi Alexey,

Thank you for posting query to us. Please try using the following code in the Form load and let me know if this helps.

GridControlBase.UseOldHiddenScrollLogic = true;


Alexey Salmin
Replied On September 28, 2009 08:12 AM UTC

Hi Jisha,

Unfortunately, setting GridControlBase.UseOldHiddenScrollLogic=true did not help.

I also tried another strategy and used ColWidthEntries for setting column width to 0 when hiding it, then back to cashed value when unhiding. However the scrollbar refuses to restore itself when the coulumns are unhidden.

Could you propose another solutions?


Jisha Joy [Syncfusion]
Replied On September 28, 2009 10:08 AM UTC

Hi Alexey,

Thank you for your update.

It is difficult to identify the problem with out a working sample. Is it possible for you to upload us a minimal sample?. This will help us to analyze the issue further.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

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

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