Пример #1
0
 public void carregarLista()
 {
     grid.DataSource            = bll.Listar();
     grid.Columns[0].HeaderText = "ID";
     grid.Columns[0].ReadOnly   = true;
     grid.Columns[1].HeaderText = "Descrição";
     grid.Columns[2].HeaderText = "Data de Criação";
     grid.Columns[2].ReadOnly   = true;
 }
Пример #2
0
 public void carregarLista()
 {
     grid.DataSource                       = bll.Listar();
     grid.Columns[0].HeaderText            = "ID";
     grid.Columns[0].Width                 = 150;
     grid.Columns[0].ReadOnly              = true;
     grid.Columns[1].HeaderText            = "Portfólio";
     grid.Columns[1].Width                 = 300;
     grid.Columns[2].HeaderText            = "Data de Criação";
     grid.Columns[2].Width                 = 150;
     grid.Columns[2].ReadOnly              = true;
     grid.Columns[0].HeaderCell.Style.Font = new Font("Tahoma", 10);
     grid.Columns[1].HeaderCell.Style.Font = new Font("Tahoma", 10);
     grid.Columns[2].HeaderCell.Style.Font = new Font("Tahoma", 10);
 }