adding data to a Datagridview multiplying in the las columm

  • Thread starter Thread starter juanlynn85
  • Start date Start date
J

juanlynn85

Guest
Hi

I´m having issues with the multiply, it does´t use the "," or "." as decimal

I fill 3 textbox and then I add them to the datagrid view
and on the 4th column I multiply 2 of the textbox

valor = Val(TextBox1.Text) * Val(Precio_ventaTextBox.Text)
DataGridView1.Rows.Add(TextBox1.Text, IdproductoTextBox.Text, Precio_ventaTextBox.Text, valor)



Example1 (if I use ".")

TextBox1 = 1.3

Precio_ventaTextBox= 105

valor= 136

Example2 ( if I use ",")

TextBox1 = 1.3

Precio_ventaTextBox= 105

valor= 105


And I need the "valor" = 136,5

Continue reading...
 
Back
Top