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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Resize visible cells after scroll

Thread ID:

Created:

Updated:

Platform:

Replies:

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

Hello,

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:

gridcontrol->VScrollBar->Scroll

Please respond promptly.

Thanks,
Adam


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)
{
//Range()
//Refresh()
}
}


Please let me know if you have any concerns.

Regards,
Jeya Preetha M


CONFIRMATION

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.

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

;