Wednesday, 15 February 2012

vb.net - How to Supply Default Value back to DataGridViewCell After Error Message -


My current code will show a message box that states that only numeric input will be accepted if they do not have any non-integer input The ground will be However I can not figure out how I can return the default value to the DataGrade Virtual.

  Private DataDate DataGridViewCOTS_DataError (ByVal), as the object, byVal E DataGridViewDataErrorEventArgs handles DataGridViewCOTS.DataError then StrComp (e.Exception.Message, "Input String was not in a correct format . ") = 0 then DataGridViewCOTS.Rows (e.RowIndex) .cs (e.ColumnIndex) .Value = 3 end then End Sub  'If e.ColumnIndex = 2 then MessageBox.Show (" Please enter a numeric value After the text "itemprop =" text "> 

from this formula

the DataError event occurs after"

No comments:

Post a Comment