Index was out of range error when paging in a Nested Datagrid
I have 3 Datagrid nested.
The master has paging (And i'm using the paging inbuilt in the Datagrid)
in the Master DataGrid you select a linkbutton(using commandname) and it
populates the data in the Details DataGrid
(I'm using Dim Filter As String =
CStr(dtgMaster.DataKeys(dtgMaster.SelectedIndex)).Replace("'", "''") to
filter btw the Datagrids)
And the same is what i did for the Child DataGrid.
But i noticed that after selecting a ROW in the Master DataGrid and populate
the Details Datagrid and i try paging it WORKS!!
But after selecting a ROW in the Details Datagrid and i go back to try
paging the Master DataGrid i get the error below
Index was out of range. Must be non-negative and less than the size of the
collection. Parameter name: index
By stevemonty in forum ASP.NET
Last Post: 08-31-2005, 08:06 AM
By anbaz in forum ASP.NET
Last Post: 06-10-2005, 10:24 PM
Last Post: 11-12-2002, 09:36 PM
By Miroslav St. Jeliaskoff in forum .NET
Last Post: 10-18-2002, 05:49 PM
By Jonathan Allen in forum .NET
Last Post: 03-19-2001, 09:00 AM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL