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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trigger CurrentCellEndEdit with ok/commit button (virtual keyboard)

Thread ID:





149282 Nov 20,2019 02:08 PM UTC Nov 25,2019 05:20 AM UTC Xamarin.Forms 3
Tags: SfDataGrid
Asked On November 20, 2019 02:08 PM UTC

Hello there,

we have the following problem with our Android app (Xamarin.Forms.Android):
We have a SfDataGrid with an editable numeric column. The user can change the value of a cell, immediately after that a webservice request saves the changed value.

When we press the ok button on the virtual keyboard, the CurrentCellEndEdit-Event is not triggered and the request does not fire.
The user has to change to current selection (e.g. change the selected row) to the trigger the event.

Components like SfComboBox have a completed event which is triggered by pressing the commit button of the virtual keyboard. Is there a similar way to reproduce this behaviour in SfDataGrid?

Karthikraja Kalaimani [Syncfusion]
Replied On November 21, 2019 05:55 PM UTC

Hi Maria,

Thanks for contacting Syncfusion support. 

Currently, we don’t have support for your requirement but we have workaround to achieve your requirement by overriding the GridCellNumericRenderer of SfDataGrid. We have prepared sample for the same. In that sample OrderID column is an only GridNumericColumn.

using Syncfusion.SfDataGrid.XForms.Renderers;
partial class MainPage : ContentPage 
   public MainPage() 
    dataGrid.CellRenderers.Add("Numeric", new customNumericRenderer());


public class customNumericRenderer : GridCellNumericRenderer 
        public customNumericRenderer() 
        protected override SfNumericTextBoxExt OnCreateEditUIView() 
            var view = new NumericTextBox(); 
            return view; 

public class NumericTextBox : SfNumericTextBoxExt 
        /// <summary> 
        /// Initializes a new instance of the <see cref="NumericTextBoxView"/> class. 
        /// </summary>  
        public NumericTextBox() 
            this.Completed += NumericTextBox_Completed;   
        private void NumericTextBox_Completed(object sender, EventArgs e) 
            // you can write business logic here 

We hope this helps, please let us know if  need further assistance from us.

Karthik Raja 

Replied On November 22, 2019 09:00 AM UTC

Thank you very much, the solution works!

I raised the Datagrid.EndEdit() void inside the NumericTextbox_Completed-Event to trigger the CurrentCellEndEdit-Event. Works fine!

Farjana Parveen Ayubb [Syncfusion]
Replied On November 25, 2019 05:20 AM UTC

Hi Maria, 
Thanks for the update. 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
Farjana Parveen A 


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

Live Chat Icon For mobile
Live Chat Icon