System.Web 2.0.0.0 System.EventArgs

Before the control can be rendered, a object must be created for each row in the control. The event is raised each time a row in the control is created. This allows you to provide an event-handling method that performs a custom routine, such as adding custom content to a row, whenever this event occurs.

Similarly, each row in the control must be bound to a record in the data source before the control can be rendered. The event is raised when a data row (represented by a object) is bound to data in the control. This allows you to provide an event-handling method that performs a custom routine, such as modifying the values of the data bound to the row, whenever this event occurs.

A object is passed to the event-handling method, which allows you to access the properties of the row that raised the event. To access a specific cell in the row, use the property of the object contained in the property. You can also determine which row type (header row, data row, and so on) is being created by using the property of the object.

For more information about handling events, see Consuming Events.

For a list of initial property values for an instance of , see the constructor.

Provides data for the and events.

- Constructor

  Use this constructor to initialize a new instance of the class.

  The following table shows the initial property value for an instance of .

  Property

  Initial value

  The object contained in the parameter.

  This constructor is used primarily by control developers when raising events.

  Initializes a new instance of the class.

  A object that represents the row being created or data-bound.
  2.0.0.0
- Property
  System.Web.UI.WebControls.GridViewRow To be added.

  Use the property to access the properties of the row being created or data-bound. To access a specific cell in the row, use the property of the object contained in the property. You can also determine which row type (header row, data row, and so on) is being created by using the property of the object.

  Gets the row being created or data-bound.

  2.0.0.0