Exemple #1
0
        public virtual HtmlField AddField <T>(string ColumnTitle, string DataBind, int Width, bool Sortable = false, string ColumnNameBD = "", bool EnableCheckAll = false) where T : HtmlField
        {
            var c = (HtmlField)Activator.CreateInstance(typeof(T), this);

            c.ColumnTitle    = ColumnTitle;
            c.DataBind       = DataBind;
            c.Width          = Width;
            c.Sortable       = Sortable;
            c.EnableCheckAll = EnableCheckAll;
            c.ColumnNameBD   = ColumnNameBD;
            HtmlFields.Add(c);

            return(c);
        }