I'm trying to do this, but I'm not sure how to do this, but I'm not sure how to do this. to float.
Follow my code.
SqlCommand cmd = new SqlCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "update tbl_Produto set Lote = '" + cb_lote.Text + "', Qtda = CONVERT(FLOAT, '" + txt_qtda.Text + "') where Cod_Produto = '" + txt_codigo.Text + "'";
cmd.Connection = conex1;
conex1.Open();
cmd.ExecuteNonQuery();
conex1.Close();