[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Image Gallery with DataGrid

Posted on 2007-10-12
Medium Priority
Last Modified: 2008-01-09
Hi Experts!
I'm trying to create a little image gallery with the DataGrid. I would like to have 4 column DataGrid with multiple images on the page. I tried creating 4 Template Columns with image Eval("Name","Images/{0}") code expression but I end up with 4 same images per line.
What expression can I use or what can I do to make sure that images in the row do not repeat because right now my DataGrid looks like this:

imageA   |  imageA   |  imageA   |  imageA   |  
imageB   |  imageB   |  imageB   |  imageB   |  
imageC   |   imageC   |   imageC   |   imageC   |  
imageD   |   imageD   |   imageD   |   imageD   |  

and I need it to look:

imageA   |   imageB   |   imageC   |   imageD   |  
imageE   |   imageF    |   imageG  |   imageH    |  
imageI   |   imageJ     |   imageK   |   imageL    |  
imageM   |   imageN   |   imageO   |   imageP   |  

Hope it's clear enough.
Thank you in advance.
Question by:techsuppoprt
  • 2
LVL 37

Expert Comment

ID: 20068285
what about using a datalist? set the repeatcolumns to 4 ...

Author Comment

ID: 20068298
DataList doen'st have a 'Paging' Ability  ( at least not that I know of ) and I'll neet to have pages.
LVL 37

Accepted Solution

samtran0331 earned 1000 total points
ID: 20068325
no, paging isn't built into the datalist like a gridview, but it can be done,
from the master himself:

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question