Introduction
In this article i have tried to summarize all the events of grid view which i came across.
What is a GridView?
The DataGrid or GridView control displays data in tabular form, and it also supports selecting, sorting, paging, and editing the data inside the grid itself. The DataGrid or GridView generates a BoundColumn for each field in the data source (AutoGenerateColumns=true). By directly assigning the data source to the GridView, the data can be rendered in separate columns, in the order it occurs in the data source. By default, the field names appear in the grid's column headers, and values are rendered in text labels. A default format is applied to non-string values and it can be changed.
GridView Fields
| Column Name | Description | | |
BoundColumn | To control the order and rendering of columns. | ||
HyperLinkColumn | Presents the bound data in HyperLink controls | ||
ButtonColumn | Bubbles a user command from within a row to the grid event handler | ||
TemplateColumn | Controls which controls are rendered in the column | ||
CommandField | Displays Edit, Update, and Cancel links in response to changes in the DataGrid control's EditItemIndex property. |