Raises the GridView.RowCreated event.
- e
- A System.Web.UI.WebControls.GridViewRowEventArgs that contains event data.
Before the System.Web.UI.WebControls.GridView control can be rendered, a System.Web.UI.WebControls.GridViewRow object must be created for each row in the control. The GridView.RowCreated event is raised when each row in the System.Web.UI.WebControls.GridView control is created. This enables you to provide an event-handling method that performs a custom routine, such as adding custom content to a row, whenever this event occurs.
Raising an event invokes the event handler through a delegate. For more information, see Raising an Event.
The GridView.OnRowCreated(GridViewRowEventArgs) method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.