private void textBox3_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == 13) { dataGridView1.DataSource = itens.BuscaLocal(textBox3.Text.ToUpper()); if (dataGridView1.RowCount > 1) { button3.Visible = true; } } }