BindingSourceRefresh contains functionality for refreshing the data bound to controls on Host as well as a mechinism for catching data binding errors that occur in Host. More...
Public Member Functions | |
BindingSourceRefresh () | |
Constructor creates a new BindingSourceRefresh component then initialises all the different sub components. More... | |
BindingSourceRefresh (IContainer container) | |
Constructor creates a new BindingSourceRefresh component, adds the component to the container supplied before initialising all the different sub components. More... | |
bool | CanExtend (object extendee) |
CanExtend() returns true if extendee is a binding source. More... | |
bool | GetReadValuesOnChange (BindingSource source) |
GetReadValuesOnChange() gets the value of the custom ReadValuesOnChange extender property added to extended controls. More... | |
void | SetReadValuesOnChange (BindingSource source, bool value) |
SetReadValuesOnChange() sets the value of the custom ReadValuesOnChange extender property added to extended controls. More... | |
Protected Member Functions | |
override void | Dispose (bool disposing) |
Clean up any resources being used. More... | |
Properties | |
ContainerControl | Host [getset] |
Not in use - kept for backward compatibility More... | |
bool | RefreshOnException [getset] |
Forces the binding to re-read after an exception is thrown when changing the binding value More... | |
Events | |
BindingErrorEventHandler | BindingError = null |
BindingError event is raised when a data binding error occurs due to a exception. More... | |
BindingSourceRefresh contains functionality for refreshing the data bound to controls on Host as well as a mechinism for catching data binding errors that occur in Host.
Windows Forms extender control that resolves the data refresh issue with data bound detail controls as discussed in Chapter 5.
Definition at line 29 of file BindingSourceRefresh.cs.
Csla.Windows.BindingSourceRefresh.BindingSourceRefresh | ( | ) |
Constructor creates a new BindingSourceRefresh component then initialises all the different sub components.
Definition at line 44 of file BindingSourceRefresh.cs.
Csla.Windows.BindingSourceRefresh.BindingSourceRefresh | ( | IContainer | container | ) |
Constructor creates a new BindingSourceRefresh component, adds the component to the container supplied before initialising all the different sub components.
container | The container the component is to be added to. |
Definition at line 52 of file BindingSourceRefresh.cs.
bool Csla.Windows.BindingSourceRefresh.CanExtend | ( | object | extendee | ) |
CanExtend() returns true if extendee is a binding source.
extendee | The control to be extended. |
Definition at line 94 of file BindingSourceRefresh.cs.
|
protected |
Clean up any resources being used.
disposing | true if managed resources should be disposed; otherwise, false. |
Definition at line 68 of file BindingSourceRefresh.cs.
bool Csla.Windows.BindingSourceRefresh.GetReadValuesOnChange | ( | BindingSource | source | ) |
GetReadValuesOnChange() gets the value of the custom ReadValuesOnChange extender property added to extended controls.
property added to extended controls.
source | Control being extended. |
Definition at line 104 of file BindingSourceRefresh.cs.
void Csla.Windows.BindingSourceRefresh.SetReadValuesOnChange | ( | BindingSource | source, |
bool | value | ||
) |
SetReadValuesOnChange() sets the value of the custom ReadValuesOnChange extender property added to extended controls.
source | Control being extended. |
value | New value of property. |
Definition at line 120 of file BindingSourceRefresh.cs.
|
getset |
Not in use - kept for backward compatibility
Definition at line 141 of file BindingSourceRefresh.cs.
|
getset |
Forces the binding to re-read after an exception is thrown when changing the binding value
Definition at line 148 of file BindingSourceRefresh.cs.
BindingErrorEventHandler Csla.Windows.BindingSourceRefresh.BindingError = null |
BindingError event is raised when a data binding error occurs due to a exception.
Definition at line 38 of file BindingSourceRefresh.cs.