My application has a datagridview bound to a data table of numbers. The data format of each column in the datagridview is N2, and the cells display a value correctly, (like 102.34). I'm trying to capture an error where the user enters a string, or perhaps something like 32..43 instead of 32.43. I'm trying to look at cell validating and inspect the cell data before letting it get updated. I just want to send out some sort of text tool tip telling the user to enter a number, and not let him go on to the next cell. Something like
Private
Sub FUELTABLEDataGridView_CellValidating(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellValidatingEventArgs) Handles FUELTABLEDataGridView.CellValidating
If e.FormattedValue ????
Thanks in advance