ivan74 Posted September 1, 2005 Posted September 1, 2005 Hi I have bunch of textboxes bound to dataset (ms sql server). How can I make those textboxes which are bound to a column type double, to always show two decimal places even if one or both of them are zeroes. Is there any solution not envolving calling some procedure from lostfocus or other event, so far I have only came up with those kind of exapmles. Thanks Quote
FZelle Posted September 1, 2005 Posted September 1, 2005 You can use the Format and Parse event of the binding. http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfsystemwindowsformsbindingclassformattopic.asp Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.