I have a WinForm, and on this form I have 4 main things:
- Textbox - for bill amount
The following code sets the bindingsource; "datasource" and "datamember" to the currently stored dataset(this dataset was populated from a bill table in a access database, where it was formatted as currency):
bs = bindingsource created on the form.
bs.DataMember = "Bills"; bs.DataSource = dsMain.Tables["Bills"];
then I add a databinding to the textbox
totalTextBox.DataBindings.Add("Text", bs, "BillAmount");
this all works perfectly fine. However, the data is not being output as currency, but instead as number. I am trying to figure out how to make it output the results to the textbox as currency. Is the only way to format the datatable before binding and displaying the results?