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.
Syncfusion Feedback

Get Cell Edit value

Thread ID:

Created:

Updated:

Platform:

Replies:

102031 Dec 15,2011 02:00 PM UTC Jan 6,2012 01:06 PM UTC WPF 2
loading
Tags: GridControl
Darran White
Asked On December 15, 2011 02:00 PM UTC

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



Darran White
Replied On 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;
}


Sankara Narayanan N [Syncfusion]
Replied On 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


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.

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

;