System.Web.UI.WebControls Namespace BaseDataBoundControl Class
.NET Framework version 2.0
Occurs after a BaseDataBoundControl binds to a data source.
[ VB ]
Public Event DataBound As EventHandler
[ C# ]
public event EventHandler DataBound;
[ C++ ]
public: __event EventHandler* DataBound;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The DataBound event is raised whenever a BaseDataBoundControl is bound to data.
This event provides an opportunity to access each row in the BaseDataBoundControl before the page is finally sent to the client for display. After this event is raised, the data item is nulled out and no longer available.
This event notifies the server control that any data binding logic written for it has completed.
The following example demonstrates how to code a handler for the DataBound event of a FormView control.
For more information, see DataBinding in Web Forms.
BaseDataBoundControl Members