Modified the grid data access.