asp.net.ph

BaseDataBoundControl.DataBound Event

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.

Remarks

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.

Example

The following example demonstrates how to code a handler for the DataBound event of a FormView control.

FormView DataBound Event Example
Run Sample | View Source

For more information, see DataBinding in Web Forms.

See Also

BaseDataBoundControl Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph