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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

SfDataGrid NumericColumn How and when to get value after value is edited?

Thread ID:





130876 Jun 8,2017 08:35 AM UTC Jun 12,2017 10:30 AM UTC Xamarin.Forms 3
Tags: SfDataGrid
Richard Hadlow
Asked On June 8, 2017 08:35 AM UTC


was wondering how to get the value of a numeric cell after the user has edited the cell and changed the value. In what event should this retrieval be tasked?

When i use the CurrentCellEndEdit event, the GetCellValue shows the value from the Binding Model (previous value), but I can see thew new value in the renderer -> currentCellRendererElement object.

Could you please advise on the best way to achieve this please.

Thanks in advance,

Ashok N [Syncfusion]
Replied On June 9, 2017 09:47 AM UTC

Hi Richy, 
Thanks for contacting Syncfusion support.  
You can achieve your requirement by handling same CurrentCellEndEdit and SfDataGrid.GetCellValue method with help of asyn and await. Because it will take some time for notify the property changed in view while change the new value. Please refer the below code example: 
private async void DataGrid_CurrentCellEndEdit(object sender, GridCurrentCellEndEditEventArgs args) 
    await Task.Delay(100); 
    var newCellValue = dataGrid.GetCellValue(viewModel.OrdersInfo[args.RowColumnIndex.RowIndex - 1], dataGrid.Columns[args.RowColumnIndex.ColumnIndex].MappingName); 

Richard Hadlow
Replied On June 9, 2017 01:09 PM UTC

Hi Ashok,

that did the trick. Thanks


Ashok N [Syncfusion]
Replied On June 12, 2017 10:30 AM UTC

Hi Richy, 
Thanks for your update. Please let us know if you require further assistance on this. 


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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