displaying images in multiple columns

Discussion in 'ASP .Net Datagrid Control' started by Joe Abou Jaoude, Sep 5, 2003.

  1. hi,
    i want to display in my form pictures(the url is taken from a database),
    like this:

    pic1 pic2 pic3 pic4
    pic5 pic6 ....

    i ve desined a template column and binded the urlimage to the
    corresponding field. but now i have to specify that the datagrid has 4
    columns coz the results are displayed this way:


    can i do that in datagrid ?
    or do i have to use a repeater? and how to use it to obtain the
    desirable result

    Joe Abou Jaoude, Sep 5, 2003
    1. Advertisements

  2. Joe Abou Jaoude

    Prasad Guest


    DataList is the best candidate for this with Repeatcolumns set to 4

    Prasad, Sep 6, 2003
    1. Advertisements

  3. Joe Abou Jaoude

    Noel Hoo Guest

    Think of a datagrid as a table. When you bind the datagrid, a new row will
    be added to the datagrid for each row of data. Hence, all you pictures
    appears in a single column.

    To get the desired, try using a datalist. Similar way of using it to a

    Hope this helps.
    Noel Hoo, Sep 8, 2003
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.