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.

How to set custom level validation rule for particular Column

Thread ID:

Created:

Updated:

Platform:

Replies:

34526 Sep 12,2005 07:57 AM Sep 13,2005 11:54 AM Windows Forms 3
loading
Tags: GridControl
Nandkumar
Asked On September 12, 2005 07:57 AM

Hi Help help ...!!! I am using GridDataBoundGrid control, I wanna apply custom validation rules for particular column. Is there any delegate I can hook to do my custom validation? The currenlty provided styleinfo.validatevalue object does not provide me sufficient information to do needful Please let me know is there any other way of doing this. I appreciate your help. thanks Nandkumar

Administrator [Syncfusion]
Replied On September 12, 2005 06:48 PM

To do validation on a cell, you can subscribe to the grid.CurrentCellValidating event. There, tiy can check grid.CurrentCell.Renderer.ControlText to see if it is valid. If not, you can set e.Cancel = true. You can use grid.CurrentCell.RowIndex\grid.CurrentCell.ColIndex to know what row/col you are in.

Nandkumar
Replied On September 13, 2005 01:51 AM

Hi Clay Burch, Thanks for the information. Just am wondering if any thing like, I can do by providing validation rule in XML file/string so that in future I can make changes with out re-compiling my source code. Thanks Nandkumar >To do validation on a cell, you can subscribe to the grid.CurrentCellValidating event. There, tiy can check grid.CurrentCell.Renderer.ControlText to see if it is valid. If not, you can set e.Cancel = true. You can use grid.CurrentCell.RowIndex\grid.CurrentCell.ColIndex to know what row/col you are in.

Administrator [Syncfusion]
Replied On September 13, 2005 11:54 AM

Hi Nandkumar, Currently we don''t have any features like this. Thanks, Jay N

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.

;