//Pesquisar no DataGrid private void PesquisarHistoricoManutencoes() { this.dtGrdVwManutencoes.DataSource = ControllerHistoricoManutencao.PesquisarHistoricoManutencao(Convert.ToInt32(txtBxCodigo.Text)); lblTotalRegistros.Text = "Total de registros: " + Convert.ToString(dtGrdVwManutencoes.Rows.Count); }
//Exibir no DataGrid private void Exibir() { this.dtGrdVwManutencoes.DataSource = ControllerHistoricoManutencao.Exibir(); lblTotalRegistros.Text = "Total de registros: " + Convert.ToString(dtGrdVwManutencoes.Rows.Count); }