change cell value by code not refresh source table changes

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

2 Replies

AD Administrator Syncfusion Team October 23, 2006 06:36 PM UTC

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


AD Administrator Syncfusion Team October 23, 2006 08:04 PM UTC

Thank you. It work well now.

Loader.
Up arrow icon