protected override void SetupList(ListSetup listSetup) { if (SortMember==string.Empty) { SortMember = "Name"; } listSetup.Source = Db.Category.ToList(); TotalCount = listSetup.Source.Count; PageCount = TotalCount / ITEMS_COUNT + 1; listSetup.IdMember = "Id"; listSetup.TextMember = "Name"; listSetup.Columns.Add(new ListColumn("Name", "Nazwa", HorizontalAlign.Center, TypeColumn.Text)); }
protected virtual void SetupList(ListSetup listSetup) { throw new Exception("This method must be overriden in a concrete implementation."); }