protected override void OnPreRender(EventArgs e) { foreach (ListViewColumn column in this.Columns) { XTemplate tpl = column.XTemplate; if (tpl.Html.IsNotEmpty()) { this.Controls.Add(tpl); this.LazyItems.Add(tpl); } } base.OnPreRender(e); }