Fixed an issue with the gridview.