public ControlEventi() { InitializeComponent(); if (!string.IsNullOrWhiteSpace(HolonetConnectionString)) { manager = new EventiManager(HolonetConnectionString); var events = manager.GetPagedEventsList(startPage, pageSize); grdEventi.DataSource = events; } }
/// <summary> /// Carica i dati della griglia Eventi /// </summary> public override void LoadData() { CheckManager(); if (manager != null) { var events = manager.GetPagedEventsList(startPage, pageSize); //BindingList<Evento> lista = new BindingList<Evento>(events); grdEventi.DataSource = events; //grdEventi.DataSource = lista; } }