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.

Suspend Binding

Thread ID:

Created:

Updated:

Platform:

Replies:

38738 Dec 16,2005 12:33 PM Dec 16,2005 01:18 PM Windows Forms 1
loading
Tags: GridControl
Christopher Dugdale
Asked On December 16, 2005 12:33 PM

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 01:18 PM

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.

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.

;