BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
using Syncfusion.SfDataGrid.XForms.Renderers;
public partial class MainPage : ContentPage {
public MainPage()
{
…… dataGrid.CellRenderers.Remove("Numeric"); 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
}
} |