Get Cell Edit value

Hi,
I`m using

grid.CurrentCellEditingComplete += new Syncfusion.Windows.ComponentModel.GridRoutedEventHandler(grid_CurrentCellEditingComplete);

to get the value being edited before its set in the underlying object. But I don`t know how to get the new Edit value.

grid.Model[currentCell.RowIndex,currentCell.ColumnIndex].CellValue
Returns the old Value not the new edited value.

Any ideas on how to get the new Edited value before its set in the underlying object.

thanks

darran



2 Replies

DW Darran White December 15, 2011 03:20 PM UTC

Hi,
I worked it out. Might be good to have this in the docs somewhere as its not too obvious

thanks

Darran

void grid_CurrentCellEditingComplete(object sender,SyncfusionRoutedEventArgs args)
{

//Get the cell that was updated
var currentCell = grid.Model.Grid.CurrentCell;

//Get the value being updated
var val = currentCell.Renderer.ControlValue;
}



SN Sankara Narayanan N Syncfusion Team January 6, 2012 01:06 PM UTC

Hi Darran,

Thanks for the update.
Sure, we will add the documents in any of our upcoming release.

Please let us know if you need more information, we are happy to help you out.

Thanks,
Sankar


Loader.
Up arrow icon