Index was out of range error when paging in a Nested Datagrid

P

Pat

I have 3 Datagrid nested.
Master
Details
Child
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
Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top