[RESOLVED] dataformat
Hi,
How to do this? I braking my brains on this one.
In a bound winform i use the following to display the data in a textbox
this offcourse works fine.
however,
this value is in the database as currency and is diplayed as 10,0000 (representing €10)
(I know how to convert it to currency and it is displayed as € 10,00. But I think this is confusing for the user when changing this value, he/she might think that the '€' has te be typed to)
therefor, I just want this value to be displayed as 10,00 (2 digits instead of 4) and make a label wit the '€' sign behind the text box
thanks in advance
Hi,
How to do this? I braking my brains on this one.
In a bound winform i use the following to display the data in a textbox
VB.NET:
[SIZE=2][COLOR=#008000]
[COLOR=black]Textbox1.DataBindings.Add("text", DataSource, "Field")[/COLOR]
[/COLOR][/SIZE]
this offcourse works fine.
however,
this value is in the database as currency and is diplayed as 10,0000 (representing €10)
(I know how to convert it to currency and it is displayed as € 10,00. But I think this is confusing for the user when changing this value, he/she might think that the '€' has te be typed to)
therefor, I just want this value to be displayed as 10,00 (2 digits instead of 4) and make a label wit the '€' sign behind the text box
thanks in advance
Last edited: