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

Controlling Refresh/Paint - General Q

Thread ID:

Created:

Updated:

Platform:

Replies:

625 Jul 17,2002 06:18 PM UTC Jul 22,2002 01:58 PM UTC WinForms 3
loading
Tags: GridControl
Sam Horton
Asked On July 17, 2002 06:18 PM UTC

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 09:47 AM UTC

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 01:45 PM UTC

> 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 01:58 PM UTC

> 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.

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

;