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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

formats in grid cell

Thread ID:

Created:

Updated:

Platform:

Replies:

32019 Jul 20,2005 04:32 AM UTC Jul 20,2005 08:04 AM UTC Windows Forms 1
loading
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\3.2.1.0\Windows\Grid.Windows\Samples\CellTypes\MaskEditCells

CONFIRMATION

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.

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

;