The EntityDataBinder type exposes the following members.

Constructors

  NameDescription
EntityDataBinder
Initializes a new instance of the EntityDataBinder class.

Methods

  NameDescription
AddBindingOverloaded.
CanExtend
Specifies whether this object can provide its extender properties to the specified object.
DataBindOverloaded.
GetDataBindingItemOverloaded.
LoadFromControls
Picks up all controls on the form that implement the IWebDataBinder interface and adds them to the DataBindingItems Collection
OnValidateControl
Fires the ValidateControlEvent
UnbindOverloaded.

Fields

  NameDescription
DesignMode
Indicates if the control is currently in design mode

Properties

  NameDescription
AutoLoadDataBoundControls
Automatically imports all controls on the form that implement the IWebDataBinder interface and adds them to the DataBinder
BindingItems
Gets the binding items.

Events

  NameDescription
AfterBindControl
Fires immediately after the control has been bound. You can check for errors or perform additional validation.
AfterUnbindControl
Fires immediately after binding is complete. You can check for errors and take additional action.
BeforeBindControl
Fired just before the control is bound. You can return false from the handler to cause the control to not be bound
BeforeUnbindControl
Fires immediately before unbinding of a control takes place. You can return false to abort DataUnbinding
ValidateControl
Event that can be hooked to validate each control after it's been unbound. Allows for doing application level validation of the data once it's been returned. This method receives a WebDataBindingItem parameter which includes a reference to both the control and the DataSource object where you can check values. Return false from the event method to indicate that validation failed which causes a new BindingError to be created and added to the BindingErrors collection.

See Also