Display more than 8 photos at a time in Gallery

Topics: Developer Forum, User Forum
Aug 28, 2008 at 5:23 PM

I would like to change the amount of images that are show up in the Image Gallery. Right now it allows 8 images. 2 Rows of 4. I woould like to know is it possible to change this. Either by adding more rows or more columns or a combination of both?

Also, is it possible to make the Silverlight VIEW show first, and the HTML View be the selectable one?

Thanks ahead of time.

TJ Havens
Sep 6, 2008 at 12:28 AM
To make Silverlight show as default:

Go to SectionControls/Gallery.ascx.cs then comment out lines 64, 66, 67

looks like this:


"NumberOfUploads", _intNumberOfUploads);



   // if (Request.QueryString["silverlight"] != null)




// else



// mvHtmlSilverlight.SetActiveView(vwHtml);




Oct 13, 2008 at 5:49 AM
To change the number of images shown on each page of the gallery:

In the Pager.cs file, set the AllowPaging property to "true"
and set the PageSize property to the number of images you want on each page (see below)

_pagedDataSource.AllowPaging = true;

_pagedDataSource.PageSize = 2;

Note: setting the AllowPaging property to "false" will prevent paging and put all your images on one page.