Ken's code for e.formatted value does work but only in case of first and single row.
If i have more then one row and the user click on any other column in newly generated row it won't work as the validating event doesn't fire. Hey , I understand that help never comes when most required, but were you able to find a solution to this I have a similar problem in which I have two combobox columns in my datagridview.
Problem: Everything is working fine but when the cursor is in the cell and the value is greater than 100 and the User presses the "X"-Button on the form (Close-Button) the Message still appears.
When this event is canceled in data-bound mode, the new value is not pushed to the underlying data source.
When this event is canceled in virtual mode, the Cell Value Pushed event will not be raised.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site.
If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.