Beispiel #1
0
 public void carregaGrid()
 {
     try
     {
         DataTable tab = null;
         tab = objGru.localizarEmTudo(txtPesquisar.Text);
         gvPesquisa.DataSource = tab;
         gvPesquisa.Columns["gru_codigo"].HeaderText    = "Código";
         gvPesquisa.Columns["gru_descricao"].HeaderText = "Nome";
         gvPesquisa.Columns[1].Width = gvPesquisa.Width - 103;
         //  stiloGrid();
         gvPesquisa.ClearSelection();
     }
     catch (Exception)
     {
         throw;
     }
 }