Adding numeric data from a ds? Am I making this to hard?
Posted on 2004-09-28
I have a ds with a couple of tables. Each one is bound to a combo box where the user will select an option. I need to keep the running total as they work through the form.
I have this:
Tot = System.Convert.ToString(dsBuilder.Tables["InputGear"].Rows[this.mmComboBox4.SelectedIndex]["se_price"].ToString());
Why is pulling data from the ds always in a string, that I have to convert to decimal, and then back to a string for show in a textbox?
I have to add a total of 8 selections. Is there an easier way to do the math ?