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.

change cell value by code not refresh source table changes

Thread ID:

Created:

Updated:

Platform:

Replies:

50914 Oct 23,2006 01:37 PM Oct 23,2006 04:04 PM Windows Forms 2
loading
Tags: GridControl
Lan Mo
Asked On October 23, 2006 01:37 PM

Hello there,
V3.3.0 GGC

I change cell values by code and want to refresh the data source immedieately after the changes.
But I noticed the last row is not maked being changed. I used GGC.Table.EndEdit() to refresh the cell changes whether the cursor leaves the last cell.
Please see the attached sample's code in the button click events.
Any idea? Thanks.

Lan

GGC_EmptyDataSource.zip

Administrator [Syncfusion]
Replied On October 23, 2006 02:36 PM

Hi Lan,

Try calling the EndEdit method on the CurrentRecord in your button handler. Try the code below.

if(this.gridGroupingControl1.Table.CurrentRecord != null)
this.gridGroupingControl1.Table.CurrentRecord.EndEdit();
this.gridGroupingControl1.CurrencyManager.EndCurrentEdit();

Let me know if this helps.
Regards,
Rajagopal

Administrator [Syncfusion]
Replied On October 23, 2006 04:04 PM

Thank you. It work well now.

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.

;