Link to home
Start Free TrialLog in
Avatar of Jess31
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?
Avatar of HainKurt
HainKurt
Flag of Canada image

is BackSpace casuing a postback?
and after postback are you trying to update db?

can you please post related html and aspx code...
Avatar of Jess31
Jess31

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...
Avatar of Jess31

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 ...
ASKER CERTIFIED SOLUTION
Avatar of rajeeshmca
rajeeshmca
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jess31

ASKER

You hit it right on!
That was the problem. DefaultCellStyle.NullValue.
Thanks!