AD
Administrator
Syncfusion Team
July 20, 2005 08:04 AM UTC
The CurrentCellValidateString event is the grid event you can use to do key by key validation (like only accepting numeric characters).
To specify a format on a cell, you can set style.Format and style.CellvalueType for the cell (or column in a GridDataBoundGrid or GridGroupingCOntrol). But this will only display the problem when your user leaves the cell. It will not prevent him from typing anything.
Another way you can control what is permitted in a cell is to use a MaskEdit CellType. \Syncfusion\Essential Studio\3.2.1.0\Windows\Grid.Windows\Samples\CellTypes\MaskEditCells