The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
HAhaneefm Syncfusion Team October 19, 2007 12:11 AM UTC
Hi YC,
I am not sure of what be might be causing this strange behavior without a working sample. I have tested this issue in browser sample with Essentail studio V.4.x/5.x. But i was not able to reproduce the issue. Is it possible for you to upload us a minimal sample or modify the browser sample to reproduce the issue here? This will help us to analyse the issue further.
Best regards, Haneef
DADavidOctober 19, 2007 01:02 PM UTC
hi, Haneef,
please see the attached example. reproducing steps still the same.
HAhaneefm Syncfusion Team October 19, 2007 10:33 PM UTC
Hi David,
You can go for the TextBox celltype and the cellvaluetype as double for your needs. You can restrict the non-numeric entries to the cell handling the CurrentCellKeyPress event. To get the desired format for the cells, set the Style.Format in the PrepareViewStyle event handler. Please try the below code snippets
void gridDataBoundGrid1_CurrentCellKeyPress(object sender, KeyPressEventArgs e) { GridDataBoundGrid grid = sender as GridDataBoundGrid; GridCurrentCell cc = grid.CurrentCell; if (cc != null) { if (e.KeyChar == '.') { string sCellText = cc.Renderer.ControlText; if (sCellText.IndexOf(".") != -1) { e.Handled = true; } } else if (!char.IsNumber(e.KeyChar)) e.Handled = true; else { GridTextBoxCellRenderer cr = cc.Renderer as GridTextBoxCellRenderer; cr.TextBox.SelectionLength = 1; } }