This article is quite old but is still actual:
Creating Web Server Control Templates Programmatically
http://msdn.microsoft.com/en-us/library/aa289501.aspx
--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"Carlo Marchesoni" <> wrote in
message news:094F9B73-8B5D-4669-97A9-...
>I was searching for a sample or tutorial on how to build a ListView with
>it's
> Templates and Datasources programmatically but without success.
> I think of building a generic Viewer of data, but columns and datasource
> ar
> not known at design time, so they have to be build dynamically in
> code-behind.
> Does somebody know where to find something ?