- Grid is defined in markup
- But the grid columns are added dynamically after the data is fetched from database onNeedDataSource
- I had to set the EnableViewState to false since the grid columns are created dynamically
- When a different page in the grid is selected, Grid.PageIndex is always returning 0 even when the paging is enabled. Why?
- To solve the above issue, I tried to add OnPageIndexChanged event to the grid. But this event is never getting called when a different page is selected in grid. Why? Does this not work when ViewState is disabled?