Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   create asp:listview programmatically (http://www.velocityreviews.com/forums/t615347-create-asp-listview-programmatically.html)

Carlo Marchesoni 05-17-2008 12:33 PM

create asp:listview programmatically
 
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 ?

Eliyahu Goldin 05-18-2008 09:31 AM

Re: create asp:listview programmatically
 
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" <CarloMarchesoni@discussions.microsoft.com> wrote in
message news:094F9B73-8B5D-4669-97A9-FA1681A3E04E@microsoft.com...
>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 ?




Carlo Marchesoni 05-22-2008 06:39 AM

Re: create asp:listview programmatically
 
Thanks Eliyahu - great walk thru.

"Eliyahu Goldin" wrote:

> 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" <CarloMarchesoni@discussions.microsoft.com> wrote in
> message news:094F9B73-8B5D-4669-97A9-FA1681A3E04E@microsoft.com...
> >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 ?

>
>
>



All times are GMT. The time now is 09:29 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57