I've got a DataboundGrid which I bind to an ArrayList. I've got a button which deletes the currently selected row (using DeleteRecordsAtRowIndex, or deleting from the ArrayList and rebinding). If the row being deleted is the last row in the grid, I always get a System.ArgumentOutOfRangeException when I try to select another row. I'm guessing the problem is the models selected index, or current cell.
Is this a bug? Or is it part of my responsibilities to check when I delete or rebind that the current cell / selection is valid?