示例#1
0
 public void AtualizaFiltro()
 {
     GridEmpresa.AutoGenerateColumns = false;
     GridEmpresa.DataSource          = new SortableBindingList <Domain.Entity.Empresa>(_context.Empresas.ToList());
     if (GridEmpresa.Rows.Count > 0)
     {
         GridEmpresa.Rows[0].Selected = true;
     }
     LbPesquisa.Text = GridEmpresa.Ordena(1);
 }
示例#2
0
 private void GridEmpresa_ColumnHeaderMouseClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     LbPesquisa.Text = GridEmpresa.Ordena(e.ColumnIndex);
     GridEmpresa.Pesquisa(EditPesquisa.Text, (CurrencyManager)BindingContext[GridEmpresa.DataSource]);
 }