DataGrid / DataList

ksbecker

Newcomer
Joined
Jan 30, 2004
Messages
2
I'm using a DataList to display images in 3 columns using the RepeatColumns property. The HTML code that links to the images is stored in an Array and bound to my datalist. This works great, except that if you have a bunch of images, it has to process and download every image. I would like to add paging to this so I started looking into the DataGrid. I was able to implement the DG with paging, but it only showed 1 image per row instead of the 3 like the DL.

How can I implement paging with a DL or RepeatColumns with a DG? Thanks for any help that you can provide!

Kevin
 
You can build your own paging control using Stored Procedures and such instead of using the datagrid's built in paging. Then you can take advantage of the datalist's repeat direction.
 
Just to note paging via a DataGrid (which uses the PageDataSource class as stated by mr relaxo, above) is not a good idea if the set of data contains more than a few thousand rows.
 
Back
Top