protected void GetData() { Collection <Rezervace> rezervacee = RezervaceTable.select(); BindingList <Rezervace> bindingList = new BindingList <Rezervace>(rezervacee); RezGrid.DataSource = bindingList; }
public bool OpenRecord(object primaryKey) { if (primaryKey != null) { int idRez = (int)primaryKey; rezervace = RezervaceTable.select(idRez); newRecord = false; } else { rezervace = new Rezervace(); rezervace.datumStrelby = new DateTime(2000, 01, 01); newRecord = true; } BindData(); return(true); }