"Array index out of bounds exception " after Deleting last row from Datagrid
-
Hi all, I have a datagrid whose datasource is an arraylist. On deleting the last row from the arraylist and refreshing the datagrid, the datagrid is displayed fine, but on clicking on any cell on the datagrid, an "Array index out of bounds exception" is thrown. It works fine if i delete any other row from the datagrid. What can be the problem here? Thanks!!
-
Hi all, I have a datagrid whose datasource is an arraylist. On deleting the last row from the arraylist and refreshing the datagrid, the datagrid is displayed fine, but on clicking on any cell on the datagrid, an "Array index out of bounds exception" is thrown. It works fine if i delete any other row from the datagrid. What can be the problem here? Thanks!!
My guess would be that you're asking for a row from your Array List that no longer exists.
-
My guess would be that you're asking for a row from your Array List that no longer exists.