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.

Grid refresh not working from inside CurrentCellAcceptedChanges

Thread ID:





40599 Feb 7,2006 11:33 PM Feb 8,2006 01:49 PM Windows Forms 2
Tags: GridControl
Asked On February 7, 2006 11:33 PM

I am developing an application in which an update to the current cell causes updates to the values of other cells. My method of doing bulk updates to the grid is the following: -beginupdate -getcells -modify resulting table -setcells -endupdate -refresh affected ranges This works great except when i try to do it from within the CurrentCellAcceptedChanges event handler. The updated cell contents are there but I have to select a range to see the new values. If I run the code from outside the event handler it works. So what''s the best way to update cells once a user has finished entering a value into the current cell? Thanks.

Administrator [Syncfusion]
Replied On February 8, 2006 08:21 AM

Hi Jim, Try the RefreshRange(GridRangeInfo range, bool forceRefreshCurrentCell) overloaded method, to force the current cell to refresh. And also try avoiding the BeginUpdate and EndUpdate to see if that helps. Also try CurrentCellChanged and CurrentCellEditingComplete events to see if that serves your need. Regards, Calvin.

Replied On February 8, 2006 01:49 PM

Hi Calvin, Doing the update in the CurrentCellEditingComplete event works. Thanks!


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.