Cellvalidating cancel

Posted by / 24-Jul-2017 15:48

Honestly, I can't see a difference, since the Cell Enter event occurs when the cell receives focus, and the e.

Cancel = true (which would be awesome) is not available in this event.

Well, in my case, the message box is showing up when the current cell's column index is 3(the 4'th column) and if the current cell's content matches any 4'th column's cells (except if the current cell is not the same as the 4'th column's cell).

By default, it skips the current cell and places the focus in the row below.

As I said, I would like it to remain in the cell that has the duplicate content.

If you have any tips, I'd appreciate it very much if you send them my way.

The Kettic Data Grid View allows users of the control easily validate data grid cells when data is committed to the data source.

To validate data to grid cells and rows, we need to use the Validate Cell event, which will be raised by the Kettic Data Grid View when there are any changes to the current cell or when the grid cell loses input focus like.

cellvalidating cancel-59cellvalidating cancel-38cellvalidating cancel-64

If there are no duplicates, the Enter key is used to proceed from one row to the one immediately below in the same column. You need to handle the Selection Changed event too. Please try the following code and let me know if it is clear to you and if it works for you.

One thought on “cellvalidating cancel”