create asp:listview programmatically

Discussion in 'ASP .Net' started by Carlo Marchesoni, May 17, 2008.

  1. 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, May 17, 2008
    #1
    1. Advertising

  2. 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:...
    >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, May 18, 2008
    #2
    1. Advertising

  3. 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" <> wrote in
    > message news:...
    > >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, May 22, 2008
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    1
    Views:
    4,706
  2. Matt
    Replies:
    1
    Views:
    771
    Sherif ElMetainy
    Nov 10, 2003
  3. Jimmy B

    ListView in ASP.NET/.NET 3.5

    Jimmy B, Feb 10, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    388
    Angel
    Feb 11, 2008
  4. .
    Replies:
    0
    Views:
    720
  5. Franko

    ListView report style in ASP.net?

    Franko, Jul 23, 2003, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    187
    Franko
    Jul 23, 2003
Loading...

Share This Page