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

Resize visible cells after scroll

Thread ID:





103315 Apr 20,2012 04:21 PM UTC Apr 24,2012 09:57 AM UTC WinForms 1
Tags: GridControl
Adam Bruss
Asked On April 20, 2012 04:21 PM UTC


How can one resize only the visible cells of a GridControl after a scroll operation? ResizeToFit(m_DataGridView->ViewLayout->VisibleCellsRange) doesn't work if done in the below event when type is endscroll:


Please respond promptly.


Jeya Preetha M [Syncfusion]
Replied On April 24, 2012 09:57 AM UTC

Hi Adam,

Thanks for your interest in Syncfusion Products.

To resize only the visible cells after a scroll operation,please make use of "VerticalScroll" event and specify the scrolleventtype as "Endscroll".

this.gridControl1.VerticalScroll += new ScrollEventHandler(gridControl1_VerticalScroll);
void gridControl1_VerticalScroll(object sender, ScrollEventArgs e)
if (e.Type == ScrollEventType.EndScroll)

Please let me know if you have any concerns.

Jeya Preetha M


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

or the page will be automatically redirected to 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