By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,943 Members | 1,921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,943 IT Pros & Developers. It's quick & easy.

data binding and formatting

P: n/a
hi,

i have a dataset and a number of controls that are bound to it.

some of the records being displayed are numerical and are bound to text
boxes. they display without a problem but i would like to be able to format
the numbers being displayed using thousand separators, etc. could someone
please point me in the right direction as to how to do this - i have not
been able to find a way of doing this.

many thanks.
michael
Jul 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hi Michael,

You will need to set up data binding programmatically for these controls.
Please refer to the Binding class documentation in the MSDN Library for an
example. To implement custom formatting and parsing, you should subscribe to
the Format and the Parse events of the corresponding Binding class instance
and write custom formatting/parsing code in the event handlers.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://x-unity.miik.com.ua/teststudio.aspx
Bring the power of unit testing to VS .NET IDE

"Saix News" <mi*****@2oceans.com> wrote in message
news:bj**********@ctb-nnrp2.saix.net...
hi,

i have a dataset and a number of controls that are bound to it.

some of the records being displayed are numerical and are bound to text
boxes. they display without a problem but i would like to be able to format the numbers being displayed using thousand separators, etc. could someone
please point me in the right direction as to how to do this - i have not
been able to find a way of doing this.

many thanks.
michael


Jul 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.