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

How to set custom level validation rule for particular Column

Thread ID:

Created:

Updated:

Platform:

Replies:

34526 Sep 12,2005 11:57 AM UTC Sep 13,2005 03:54 PM UTC WinForms 3
loading
Tags: GridControl
Nandkumar
Asked On September 12, 2005 11:57 AM UTC

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 10:48 PM UTC

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 05:51 AM UTC

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 03:54 PM UTC

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.

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

;