Decimal Fields don´t accept Comma.


Author
Message
Marcio Valerio Silva
Marcio Valerio Silva
StrataFrame Novice (115 reputation)StrataFrame Novice (115 reputation)StrataFrame Novice (115 reputation)StrataFrame Novice (115 reputation)StrataFrame Novice (115 reputation)StrataFrame Novice (115 reputation)StrataFrame Novice (115 reputation)StrataFrame Novice (115 reputation)StrataFrame Novice (115 reputation)
Group: Forum Members
Posts: 55, Visits: 929
My textboxes binding from decimal fields don´t accept commas!

How to resolv this problem?

at,

Marcio Valerio da Silva
Reply
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
Are you using a masked textbox?  I am not sure if you are trying to have your binding just show the commas or to show the commas as well as be part of the entry.  In .NET and binding, you can use formatting that will show the comma.  In the BindingFormat property of a StrataFrame textbox, you can put the "nX" value to just show a command and decimals.  You can reference the String.Format documentation and formatting values in the .NET documentation for more of the supported values.  But in short, if you wanted to show commas and 2 decimals, you would put this:

n2


Otherwise, look at the masked textbox to see if this is a better fit for your needs.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search