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

formats in grid cell

Thread ID:





32019 Jul 20,2005 04:32 AM UTC Jul 20,2005 08:04 AM UTC WinForms 1
Tags: GridControl
Majesh Peedikakandy
Asked On July 20, 2005 04:32 AM UTC

hi, what are the different formats that i can assign to a cell ?? for example , what do i do if i have to allow only numeric values into a particular cell ??(other than handling keypress)

Administrator [Syncfusion]
Replied On 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\\Windows\Grid.Windows\Samples\CellTypes\MaskEditCells


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