fixed point decimal

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am doing calculations on numbers and then I want to display them in a datagrid that always has 2 decimal places. I am doing something like

Dim Size As Decimal
Dim Space As Decimal
...
...
...
Size = Decimal.Round(Size, 2)
Space = Decimal.Round(Space, 2)

If the number happens to round to say 95 I want it to display as 95.00. How can I do that?

Thanks in advance.
Christel
 
Hi Christel,

Take a look at Binding.Format Event.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

Christel said:
I am doing calculations on numbers and then I want to display them in a
datagrid that always has 2 decimal places. I am doing something like
 
Back
Top