datagridtextboxcolumn.format?

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
this what i have so far.
VB.NET:
Dim t As New DataGridTextBoxColumn()
		t.MappingName = "price"
		t.Format = "c"
but i want to remove the $ sign.
how can i figure that out?
 
I believe that it is a reflection of the Windows settings for currency. What you can do, but I haven't tried it out myself yet, is to create an override for the CultureInfo and have the useroverride set so that you can then customise the currency format through the code. Point the FormatInfo of the DataGridTextBoxColumn to your newly created CultureInfo and you should see that $ sign disappear. :)
 
ok man thanks for the help.

i just figure that one out.

i just change 'c' to 'N'..then all my problems gone.


thanks.
 
Back
Top