Binding data textbox format

csharp United States
  • 16 years ago

    I'm binding a textbox to a Currency data type in a Microsoft Access database.  Everything works as expected except for the format of the currency field in the text box.  I want to display 2 decimal places like #.##.  No matter what I enter or routines I add will work to append .00 to the text box string when the value is even dollars.  The binding seems to strip away any zeros.  10.10 becomes 10.1, 20.00 becomes 20.  Any ideas how I can solve this?

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Never trust a programmer in a suit.” - Anonymous