I have two sets of dataset and the first dataset contains 20 number of records and the second one contains 21 number of records. When trying to retrieve the second dataset on a grid view, I'm not able to display the records but I can retrieve all the records from first dataset on a gridview. When I'm trying to retrieve the second dataset it is throwing an error like: System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index'
Any suggestion please.