Hi again
As mention in my earlier post, I am using a DotNetGalley control in a gridview. I configure/bind the gallery in the OnRowDataBound event of the gridview. On Page load, it works great. But on paging or if I add a row to the grid, while I rebind the entire grid (and thus the OnRowDataBound is called again), and call an update to the UpdatePanel wrapped around the gridview, the Gallery does not display. All my other info (data from the database, and additonal Icons that I load) display, just not the gallery. The control is defined on the aspx pager. I also tried wrapping the gallery itself in an UpdatePanel and updating that on each row bind, but that did not help, so I removed it. Below is the code for the OnRowDataBound event. What am I missing?
if (e.Row.RowType == DataControlRowType.DataRow)
{
if (!(e.Row.FindControl("GalleryServiceTickets") == null))
{
GalleryBrowser galleryServiceTickets = e.Row.FindControl("GalleryServiceTickets") as GalleryBrowser;
String photoPath = "PathtoFolder";
if (photoPath != null)
{
galleryServiceTickets.Visible = true;
galleryServiceTickets.Width = 150;
galleryServiceTickets.Height = 100;
galleryServiceTickets.AllowEdit = false;
galleryServiceTickets.AllowPostComment = false;
galleryServiceTickets.AllowShowComment = false;
galleryServiceTickets.Layout = "Gridshow";
galleryServiceTickets.GalleryFolder = photoPath;
galleryServiceTickets.DataBind();
}
else
galleryServiceTickets.Visible = false;
}
}
Thanks in advance for any help