Got more questions? Find advice on: SQL | XML | Regular Expressions | Windows
in Search
Welcome to AspAdvice Sign in | Join | Help

GridView for an array of images, left to right, top to bottom?

Last post 11-26-2007, 10:36 AM by carlcamera. 1 replies.
Sort Posts: Previous Next
  •  11-15-2007, 2:54 AM 36550

    GridView for an array of images, left to right, top to bottom?

    I'm doing an array of images arrayed on a page left to right, top to bottom.  There can be multiple pages, and there are 2 different sort options.  I'd like to do this in GridView rather than DataList.  Are there any simple / elegant ways of coding this in GridView or am I better off using DataList?

     Thanks

     Dave

  •  11-26-2007, 10:36 AM 36890 in reply to 36550

    Re: GridView for an array of images, left to right, top to bottom?

    I vote Repeater.

    DataGrid is not intended to display several columns of the same information.  It's best suited for traditional tabular data: column names across the top and values beneath.

    Since you are displaying only one type of information (photos) in paginated format, I would suggest getting your photos into a single table and using asp:repeater to display the images and any metadata.

    That's just my opinion.

     


    Sincerely,

    Carl
    -----
    vine type - content management with standards in mind - vinetype.com
    -----
View as RSS news feed in XML