number of rows and number columns grid is working properly.