-1
мне нужно умножить столбец valorprod * cantidad и отображения нового Колум с именем итогаУмножить 2 colums из GridView и отображать результат в новом
код здесь
DataTable dsDetalle = new DataTable("Data");
using (MySqlCommand commandSql = cn.CreateCommand())
{
commandSql.CommandType = CommandType.Text;
commandSql.CommandText = "select * from detalle where [email protected] and [email protected]";
commandSql.Parameters.AddWithValue("@idVenta", txt_boleta.Text);
commandSql.Parameters.AddWithValue("@idlocal", txtlocal.Text);
MySqlDataAdapter sqlAdapter = new MySqlDataAdapter(commandSql);
sqlAdapter.Fill(dsDetalle);
}
спасибо, что код работает –