standaard format in displaymember

Joined
Jun 10, 2003
Messages
23
How can I get a standaard format from de displaymembers in a listbox.
I have a database with Doubles. I have connect the right column of the table to the displaymember. But I want that the client sees these values in a standaard format like ###.##.
But I dont know how I do it?
 
Me.lbStr.DataSource = Me.dsStr.Str
Me.lbStr.DisplayMember = "str_price"

Me.dsStr.Clear()
Me.odaStr.Fill(dsStr)

I connect my listbox (lbstr) to the table dsStr.Str. In the column "str_price" I only have doubles in my database (for example 60.00), but when it is displayed in my listblox, the format changes, and then they are strings. Now its displayed like 60 instead of 60.00
I would like to have the displayed value in the format ##.## but I dont know how to do it.

Martijn
 
Back
Top