private void pictureBox1_Click(object sender, EventArgs e) { try { int x = Convert.ToInt32(textBox1.Text); List <Cliente> Clientes = new List <Cliente>(); Clientes = cdal.BuscarClientePorID(x); dataGridView1.DataSource = Clientes.ToList(); } catch (Exception ex) { throw new Exception(ex.Message); } }