Datagridview cellvalidating value
I click on it a second time, try to leave, and this time it behaves like it should, it raises the error icon for the cell and prevents me from leaving.
I try to enter the correct value (say .7) but the the will still be 3 and there is now no way out of the cell because it is locked due to the error and my validation code will never push the new value. EDIT -- New version of the code based off of Stuart's suggestion and mimicking the style the MSDN article uses. The text entered by the user through the user interface (UI) becomes the Formatted Value property value.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.
How can I achieve that the cell remains in edit mode and the error-symbol is displayed too?EDIT The biggest thing about the Cell Validating event is that you can stop the user from leaving a cell, if the value entered does not pass your validation. I don't want to stop the user leaving the cell if it doesnt pass validation.Can you give me an example of your Cell Value Changed function?However, for conditional formatting code, I don't see much other way for it to remain in Data Grid View's related-code (or in a class derived from Data Grid View to abstract it).I'm using Cell Value Changed currently on a grid with custom validation and have had no problems with display or anything else.