public ClienteConsulta() { InitializeComponent(); dataGridView1.DataSource = ClienteContext.GetData(); }
private void btBusca_Click(object sender, EventArgs e) { dataGridView1.DataSource = !string.IsNullOrEmpty(txtBusca.Text) ? ClienteContext.GetData(txtBusca.Text) : ClienteContext.GetData(); dataGridView1.Refresh(); }