Ejemplo n.º 1
0
 public void carregaGrid()
 {
     try
     {
         DataTable tab = null;
         tab = objCom.localizarEmTudo(txtPesquisar.Text);
         gvPesquisa.DataSource = tab;
         //gvPesquisa.Columns["cat_codigo"].HeaderText = "Código";
         //gvPesquisa.Columns["cat_descricao"].HeaderText = "Nome";
         //gvPesquisa.Columns[1].Width = gvPesquisa.Width - 103;
         //  stiloGrid();
         gvPesquisa.ClearSelection();
     }
     catch (Exception)
     {
         throw;
     }
 }