Jess31
asked on
DataGridView DataError ?
Using the DataGridView, Bound, on a numeric column when backspacing getting an error:
"Input String was not in a correct format". How can I prevent this error? Or at least rever from it?
"Input String was not in a correct format". How can I prevent this error? Or at least rever from it?
ASKER
I'm using VB.NET and Winform. Not ASP.
do you have any event on keypress? maybe keydown or keyup? or change event?
check those, maybe there is a code running and causing this issue...
check those, maybe there is a code running and causing this issue...
ASKER
No Event on Keydown or Keyup.
I don't believe its' code causing this but some how cause it is bound to a numberic field it does not like the backspace ...
I don't believe its' code causing this but some how cause it is bound to a numberic field it does not like the backspace ...
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
You hit it right on!
That was the problem. DefaultCellStyle.NullValue .
Thanks!
That was the problem. DefaultCellStyle.NullValue
Thanks!
and after postback are you trying to update db?
can you please post related html and aspx code...