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.

formats in grid cell

Thread ID:

Created:

Updated:

Platform:

Replies:

32019 Jul 20,2005 12:32 AM Jul 20,2005 04:04 AM Windows Forms 1
loading
Tags: GridControl
Majesh Peedikakandy
Asked On July 20, 2005 12:32 AM

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 04:04 AM

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.

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.

;