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.

Resize visible cells after scroll

Thread ID:





103315 Apr 20,2012 12:21 PM Apr 24,2012 05:57 AM Windows Forms 1
Tags: GridControl
Adam Bruss
Asked On April 20, 2012 12:21 PM


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 05:57 AM

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.

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.