I have created:
- one master page and one content page called Detail.
- On Button click event, displaying data in grid view.
- In grid view, columns are autogenerated.
- I wanted to show 11 column in grid view, but it is more than page size.
What to do for this?
I have created sql helper file for database connection code and calling that method, not using sqldatasource for connection.
When I trying to do paging, getting error:
The GridView 'GridView1' fired event PageIndexChanging which wasn't handled.
You need to declare a method on your code behind that handles the PageIndexChanging event.
Something similar to this:
Providing sample code:
And this is the markup:
Produces this: