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.

Controlling Refresh/Paint - General Q

Thread ID:

Created:

Updated:

Platform:

Replies:

625 Jul 17,2002 02:18 PM Jul 22,2002 09:58 AM Windows Forms 3
loading
Tags: GridControl
Sam Horton
Asked On July 17, 2002 02:18 PM

After updating a grid control, I'm having difficulty hiding the repaint (sic) visual effect. If I implement .SuspendLayout() on the control and .ResumeLayout() it appears to help but not much....

Clay Burch [Syncfusion]
Replied On July 18, 2002 05:47 AM

Try calling gridControl.BeginUpdate prior to your updates, and then GridControl1.EndUpdate after your updates to see if this helps.

Sam Horton
Replied On July 22, 2002 09:45 AM

> Try calling gridControl.BeginUpdate prior to your updates, and then GridControl1.EndUpdate after your updates to see if this helps. Perfect! Thank you, Clay!!

Sam Horton
Replied On July 22, 2002 09:58 AM

> Try calling gridControl.BeginUpdate prior to your updates, and then GridControl1.EndUpdate after your updates to see if this helps. FWIW, here's what I have in total.... When applying formats only this sequence seems to work best: gridControl.BeginUpdate() . . [change formats] . . gridConrolRefresh() gridControl.EndUpdate() When the entire grid is repopulated with new data, column names, orders and formats, this sequence works quite well: gridControl.BeginUpdate() gridControl.ReadOnly = False gridControl.Cols.RestoreFrozen() gridControl.ColCount = 0 gridControl.RowCount = 0 gridControl.UpdateScrollBars() . . [apply all new data/headers/formats] . . gridConrolRefresh() gridControl.EndUpdate() Very snappy. Nice control. :>

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.

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.

;