I face the following strange error
An unhandled exception of type 'System.IndexOutOfRangeException' occurred in system.windows.forms.dll
Additional information: Index was outside the bounds of the array.
When I click the relation name in the datagrid. The datagrid has a relation and I am showing master and detail relation in the same datagrid.
When I cick the relation for the first two rows of master, it shows the correct details (child records). But, when I click the relation name at third or any other row more than second, I get the above error. I have no clue what causes this problen. I tried to put try-catch block, no use.
Any help be appreciated.
Thanks in advance