Server Error in '/' Application.

There is no row at position 0.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.IndexOutOfRangeException: There is no row at position 0.

Source Error:


Line 228:					DataTable fotky = ds.Tables[1];
Line 229:
Line 230:					ListOfGalleriesContainer header = new ListOfGalleriesContainer(galerie.Rows[0]);
Line 231:					thumbnailsHeaderTemplate.InstantiateIn(header);
Line 232:					GaleriePlaceHolder.Controls.Add(header);

Source File: c:\DATA\WEB\cz.vrchlickeho.strelba\app_controls\control_galerie.ascx.cs    Line: 230

Stack Trace:


[IndexOutOfRangeException: There is no row at position 0.]
   System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) +2556141
   System.Data.RBTree`1.get_Item(Int32 index) +16
   System.Data.DataRowCollection.get_Item(Int32 index) +16
   PBSoftware.Gryphoon.Controls.Galerie.OnInit(EventArgs e) in c:\DATA\WEB\cz.vrchlickeho.strelba\app_controls\control_galerie.ascx.cs:230
   System.Web.UI.Control.InitRecursive(Control namingContainer) +143
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Control.InitRecursive(Control namingContainer) +391
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1477


Version Information: Microsoft .NET Framework Version:2.0.50727.8806; ASP.NET Version:2.0.50727.8762