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

Checkbox Validating event (GridDataBoundGrid)

Thread ID:





46903 Jul 24,2006 07:33 PM UTC Jul 25,2006 12:12 PM UTC WinForms 1
Tags: GridControl
Jonathan Quail
Asked On July 24, 2006 07:33 PM UTC


I am having some trouble with the GridDataBoundGrid when a column''s style is set to the checkbox.

It seems that whenever the user clicks the checkbox (or tabs into it and hits spacebar), the value is immediately set in the underlying DataView that the grid is bound to.

When the event handler for "CurrentCellValidating" is hit - the value has already been set in the dataview. So there is no way to cancel the validation or perform any action on the data before it is send to the data source.

This is not the case for textbox control in the cell - seems to only happen with checkboxes.

This is causing a significant problem in our application since we can''t do any custom actions before the dataview''s value is set like we can on every other control in our application.

Also - the behavior for a standard checkbox on the form is the same as for the textbox in a grid cell - the value is only set in the underlying dataview after the "Validating" event has fired (and that event didn''t get cancelled).

I noticed the value was set in the dataview even when the "CurrentCellChanged" event was fired - and that is fired before the Validating event.

Any ideas/workarounds would be greatly appreciated!

Btw - using Syncfusion



Administrator [Syncfusion]
Replied On July 25, 2006 12:12 PM UTC

Hi Jonathan,

To avoid the value getting stored in the underlying DataView, please try this property setting.

this.gridDataBoundGrid1.Binder.AllowSetValueOnCurrentItem = false;

On setting this property to false, you will be able to modify the contents of cell, but will not allow to save the value to the underlying record.

Let us know if this helps.


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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