aspxtreme

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

See Also

BaseDataBoundControl Members



Books and more ...


Suggested Reading

Need a break ?



Previous page Back to top Next page

Check out related books at Amazon

© 2000-2008 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 aspxtreme