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: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Suspend Binding

Thread ID:





38738 Dec 16,2005 05:33 PM UTC Dec 16,2005 06:18 PM UTC WinForms 1
Tags: GridControl
Christopher Dugdale
Asked On December 16, 2005 05:33 PM UTC

Hi, What is the effect of calling SuspendBinding on a GDBG? Am I correct in saying it doesnt stop the grid responding to ListChangedEvents fired by the datasource and fetching the data into it''s internal storage? Does it just stop the grid from repainting rows/cells which have been updated via the ListChangedEvent? What effect does SuspendBinding have if parent rows or child rows are added to the datasource? Thanks Chris

Administrator [Syncfusion]
Replied On December 16, 2005 06:18 PM UTC

SuspendBinding has no effect on childtables as the GriddataBoundGrid does not listen to any childtable events. There are gerally two cases of how SuspendBinding works depending upon UseListChangedEvent. If you want to try a different behavior flip the value of this property. The default is true from the designer code. In both cases the grid gets the ListChanged events and simply ignores in some manner (does not try to repaint the cells etc). 1) UseListChangedEvent = true; In this case when resume binding is called, the grid raises a ListChanged.Reset event which resets the grid and its data (as if it were sorted). 2) UseListChangedEvent = false; In this case as the events are raised, a Flag is maintained tracking the kinds of actions that are taking place (but the grid is not redrawing at this point). Then when ResumeBinding takes place, this flag is queried and the queued actions occur. You can see this in the \Essential Suite\Windows\Grid.Windows\Src\Extensions\DataBound\GridModelDataBinder.cs code.


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

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

Live Chat Icon For mobile
Live Chat Icon