Home > Interview Questions > ASP.NET > Lists the GridView events in asp.net?

Lists the GridView events in asp.net?

by Thamil   on 05/10/2015   Category: ASP.NET   |  Level: Advance   |  Views: 5585    |  Points: 25     |  Gold 


Below is the list of events exposed by Gridview control.

1. DataBound: Occurs after the gridview control binding with data source.
2. RowCommand: Occurs when user clicks on the button in gridview control.
3. RowDataBound: Occurs when data is bound to the gridview row.
4. RowCreated: Occurs when new rows is created in gridview control.
5. RowDeleting: Occurs when a specific row’s delete button is clicked in gridview control
6. RowDeleted: Occurs when a row’s delete button is clicked and exactly occurs after delete the record from data source.
7. RowEditing: Occurs when gridview’s rows edit button is clicked and exactly occurs before gridview control changed to edit mode.
8. RowCancelingEdit: Occurs when rows cancel button is clicked to cancel the edit operation and exactly occurs before gridview control exits the edit mode.
9. RowUpdaing: Occurs when a rows update button is clicked but it fires before gridview control update the record.
10. RowUpdated: Occurs when a gridviews rows update button is clicked but it fires exactly after the gridview control updates the specific record.
11. PageIndexChanging: fires when gridviews pager button is clicked and exactly fires before the gridview control performs paging.
12. PageIndexChnaged: fires when gridviews pager button is clicked and exactly fires after the gridview control performs paging.
13. SelectedIndexChanging: Fires when gridview row’s select button is clicked and occurs exactly before the gridview control perform the select operation.
14. SelectedIndexChanged: Fires when gridview row’s select button is clicked and occurs exactly after the gridview control perform the select operation.
15. Sorting: Fires when hyperlink is clicked to sort a specific column but before gridview performs the sort operation
16. Sorted: Fires when hyperlink is clicked to sort a specific column but after gridview performs the sort operation.


« How do you clear last exception that occurred in the application?
» How do you get last exception in asp.net?
Post Question  |  Question Home

Recent Posts

User Responses


No response found, be the first to review this question.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts