create asp:listview programmatically

C

Carlo Marchesoni

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 ?
 
C

Carlo Marchesoni

Thanks Eliyahu - great walk thru.

Eliyahu Goldin said:
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 said:
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 ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top