I have a textbox which is binded to a specific database table column. This column is formatted to be numeric with 4 decimal places.
What I want is displaying Integer in textbox without decimal places but displaying float number with decimal places.
e.g. 1) Display in textbox (45), Data in database (45.0000)
2) Display in textbox (45.45), Data in database (45.4500)
Can anyone help?
An alternative to Mark’s. One will print 45, the other will print 45.45.