Added search and sort capabilities to the grid.