void Select() { if (tbl.Count > 0) { tbl.Clear(); } // tbl = lista.TodosOsAlunos(); MeuGrid.ItemsSource = tbl; TotalLinhas(); }
//System.Windows.Forms.BindingSource Bd; public ListaAlunos() { //this.Content = "Garregando os Dados"; // Bd = new System.Windows.Forms.BindingSource(); turmas = new TurmasDAO(); tbl = new AlunosEnt(); lista = new AlunosDAO(); tbl = lista.TodosOsAlunos(); InitializeComponent(); }