ksbecker Posted January 30, 2004 Posted January 30, 2004 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 Quote
kahlua001 Posted January 30, 2004 Posted January 30, 2004 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. Quote
mr relaxo Posted January 31, 2004 Posted January 31, 2004 Investigate the PagedDataSource class. Quote You can not get ye flask.
*Gurus* Derek Stone Posted January 31, 2004 *Gurus* Posted January 31, 2004 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. Quote Posting Guidelines
ksbecker Posted February 4, 2004 Author Posted February 4, 2004 Awesome guys! Thanks for the help. You can check out what I'm working on here: http://ksbecker.mine.nu/Kevin/default.aspx I set it up so my family will be able to upload their photos to my website. I have yet to implement security and other features, but this is the only part that I haven't done before. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.