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. Image for the cookie policy date

beginupdate/endupdate and griddataboundgrid

Is the BeginUpdate()/EndUpdate(true) pattern supposed to work with the DataBoundGrid? Im finding that whilst BeginUpdate() does in fact stop updates propagating to the view, EndUpdate(true) doesnt cause those deferred updates to be drawn. Ive tried wrapping SuspendBinding()/ResumeBinding() around the BeginUpdate()/EndUpdate(), to no avail. Is BeginUpdate()/EndUpdate() simply broken on the DataBoundGrid? Could I perhaps be setting thr wrong options on the BeginUpdate method? (Ive tried them all). Im using Syncfusion 1.6.8. Could this behaviour be fixed in 2.0.x?

2 Replies

AD Administrator Syncfusion Team January 21, 2004 06:32 PM

Have you tried calling BeginUpdate like this: this.gridDataBoundGrid2.BeginUpdate(Syncfusion.Windows.Forms.BeginUpdateOptions.Invalidate); to see if that makes a difference? You can always call grid.Refresh() after your EndUpdate call to force a refresh. (Or, call grid.Invalidate followed by grid.Update to force a redraw).


DM damien morton January 22, 2004 08:56 AM

It turns out that calling grid.Update() immediatly after grid.EndUpdate(true) forces the update through. I thought that grid.EndUpdate(true) forces an Update() call, but it appears that that functionality isnt working.

Loader.
Live Chat Icon For mobile
Up arrow icon