public void loadGrid() { try { clImpl = new ClassImpl(); dgvDatos.ItemsSource = null; dgvDatos.ItemsSource = clImpl.Select(Course).DefaultView; } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void Txtsearch_TextChanged(object sender, TextChangedEventArgs e) { try { if (txtsearch.Text == "") { clImpl = new ClassImpl(); dgvDatos.ItemsSource = null; dgvDatos.ItemsSource = clImpl.Select(Course).DefaultView; Ocultar(); } else { clImpl = new ClassImpl(); dgvDatos.ItemsSource = null; dgvDatos.ItemsSource = clImpl.Selectlike(Course, txtsearch.Text).DefaultView; Ocultar(); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }