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.

Validation in GridDataBoundGrid control

Thread ID:

Created:

Updated:

Platform:

Replies:

46026 Jul 4,2006 08:11 AM Jul 6,2006 07:42 AM Windows Forms 4
loading
Tags: GridControl
Prathima Venkobachar
Asked On July 4, 2006 08:11 AM

Hi, In our application, we are using GridDataBoundGrid control. In CurrentCellValidating event we are validating the value that is entered. In the same screen we have other controls named OK, Cancel, Clear All and Delete buttons. Once the user enters invalid value and clicks on Clear All or Cancel button I need to perform some actions i.e no need to validate. But after entering invalid value, if he clicks on OK or Delete button, I should not allow the user to perform any other action. Validation should happen. Is there any property or method that can be used. Syncfusion version : 3.3 .Net framework version : 1.1 Regards, Prathima

Administrator [Syncfusion]
Replied On July 4, 2006 11:47 AM

Hi Prathima, Try setting the Clear All /Cancel button''s CausesValidation flag to false in the form''s load event. Here is a code snippet. this.Cancelbutton.CausesValidation = false; this.ClearAllbutton.CausesValidation = false; Description of CauseValidation: The value indicating whether the control causes validation to be performed on any controls that require validation when it receives the focus. Let me know if this helps. Best Regards, Haneef

Prathima Venkobachar
Replied On July 5, 2006 01:36 AM

Hi Haneef, Thanks. It works fine if the grid and other controls are placed in the same panel. In my screen, grid is placed in one panel and Cancel button is placed in another panel. Regards, Prathima. >Hi Prathima, > >Try setting the Clear All /Cancel button''s CausesValidation flag to false in the form''s load event. Here is a code snippet. > >this.Cancelbutton.CausesValidation = false; >this.ClearAllbutton.CausesValidation = false; > >Description of CauseValidation: > >The value indicating whether the control causes validation to be performed on any controls that require validation when it receives the focus. > >Let me know if this helps. >Best Regards, >Haneef > > >

Administrator [Syncfusion]
Replied On July 5, 2006 11:23 AM

Hi Prathima, Try setting the Panel''s CauseValidation property to false.Here is a code snippet. this.panel1.CausesValidation = false; this.Cancelbutton.CausesValidation = false; this.ClearAllbutton.CausesValidation = false; Let me know if this helps. Best Regards, Haneef

Prathima Venkobachar
Replied On July 6, 2006 07:42 AM

Hi Haneef, Thanx a lot. It works fine. Regards, Vanitha >Hi Prathima, > >Try setting the Panel''s CauseValidation property to false.Here is a code snippet. > >this.panel1.CausesValidation = false; >this.Cancelbutton.CausesValidation = false; >this.ClearAllbutton.CausesValidation = false; > >Let me know if this helps. >Best Regards, >Haneef

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.

;