Export (0) Print
Expand All

DataGrid.ItemDataBound Event

Occurs after an item is data bound to the DataGrid control.

[Visual Basic]
Public Event ItemDataBound As DataGridItemEventHandler
[C#]
public event DataGridItemEventHandler ItemDataBound;
[C++]
public: __event DataGridItemEventHandler* ItemDataBound;

[JScript] In JScript, you can handle the events defined by a class, but you cannot define your own.

Event Data

The event handler receives an argument of type DataGridItemEventArgs containing data related to this event. The following DataGridItemEventArgs property provides information specific to this event.

Property Description
Item Gets the referenced item in the DataGrid control when the event is raised.

Remarks

The ItemDataBound event is raised after an item is data bound to the DataGrid control. This event provides you with the last opportunity to access the data item before it is displayed on the client. After this event is raised, the data item is nulled out and no longer available.

For more information about handling events, see Consuming Events.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

DataGrid Class | DataGrid Members | System.Web.UI.WebControls Namespace | OnItemDataBound | DataGridItemEventArgs | DataGridItemEventHandler

Show:
© 2014 Microsoft