Custom Templated Databound Control or derived control?

Discussion in 'ASP .Net Building Controls' started by MattC, Nov 23, 2005.

  1. MattC

    MattC Guest

    Hi,

    I want to create a control that performs much like a datalist but I want
    more control over how the <ItemTemplate> contents is set out on the page.
    For example I have a 4 by N grid of images to set out on the page, how the
    first row is slightly different in taht the first image is twice the size of
    the rest, so the first row only have 3 images the remaining rows have 4
    images. Would I be best to derive my own control from Repeater? What
    methods will I need to override to alter the layout to design required.

    The information about the images is stored in a collection of classes so I
    will need to use the DataBinder.Eval(...) method.

    TIA


    MattC
    MattC, Nov 23, 2005
    #1
    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:
    383
    myork
    May 23, 2007
  2. Replies:
    1
    Views:
    371
    Victor Bazarov
    May 23, 2007
  3. Rasmus Johansen
    Replies:
    3
    Views:
    379
    VirGin
    Oct 18, 2007
  4. rodchar
    Replies:
    0
    Views:
    379
    rodchar
    Nov 26, 2007
  5. Manu
    Replies:
    0
    Views:
    159
Loading...

Share This Page