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

Grid refresh not working from inside CurrentCellAcceptedChanges

Thread ID:





40599 Feb 8,2006 04:33 AM UTC Feb 8,2006 06:49 PM UTC WinForms 2
Tags: GridControl
Asked On February 8, 2006 04:33 AM UTC

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

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 06:49 PM UTC

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.

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