Update binded object on cell change

I'm using the GridGroupingControl.

The only time the business object gets updates is when I click on an other row.
Is there a way to update the binded object when we click (or tab or enter) on an other cell? (even of the same row)
Will I still be able to copy/paste multiple column from excel into the grid?

Thanks!

2 Replies

RC Rajadurai C Syncfusion Team July 23, 2009 01:32 PM UTC

Hi Stephane,

Thanks for your interest in Syncfusion Products.

1) If you would like to commit the change made in record to the binded object on leaving the cell to other cell in the same record by tab or enter key, CurrentRecordContextChange event can be handled with the following code.

this.gridGroupingControl1.CurrentRecordContextChange += new Syncfusion.Grouping.CurrentRecordContextChangeEventHandler(gridGroupingControl1_CurrentRecordContextChange);

void gridGroupingControl1_CurrentRecordContextChange(object sender, Syncfusion.Grouping.CurrentRecordContextChangeEventArgs e)
{
if (e.Action == Syncfusion.Grouping.CurrentRecordAction.CurrentFieldChanged)
{
e.Table.CurrentRecord.EndEdit();
}
}


2) By default, gridgroupingcontrol supports pasting of multiple columns copied from excel sheet.

Regards,
Rajadurai


S_ Stephane _ July 23, 2009 02:26 PM UTC

Thanks!! It's working.

Loader.
Up arrow icon