Posted 23 January 2018, 5:11 am EST
Hi,
I’ve added the ValidateEdit method to a FlexGrid.
This method validates the value entered into a cell before the value is changed and disregard the change if the user entered invalid value.
When the user tries to leave a cell with invalid value he is not able to do so until he changes the value to a valid one.
This behavior works correctly for me except for when the user click on a ToolStripButton (System.Windows.Forms.ToolStripButton).
When the user click on a ToolStripButton he escape the validation.
How do i prevent him from escaping the validation for the ToolStripButton as well ?
(The FlexGrid and the ToolStrip containing the ToolStripButton are children of the same control.)