3
I am creating an event of a button in which it creates a Product object and adds in a list of Products and using this list to fill the Datasource of a dataGridView, but Datagridview keeps appearing a single product.
private void button3_Click(object sender, EventArgs e)
{
Produto produto = new Produto();
venda.ItensVenda.Add(produto);
dataGridView1.DataSource = venda.ItensVenda;
dataGridView1.Refresh();
}