suite4.net.FormDatabase Documentation

LoaderControl.InitializeDataSource Method 

Assigns the values of the data source (business object) properties to the corresponding properties of the IForm controls as specified in the form.suite4.net designer.

[Visual Basic]
Public Sub InitializeDataSource( _
   ByVal dataSource As Object _
)
[C#]
public void InitializeDataSource(
   object dataSource
);

Parameters

dataSource
The data source (business object) to be bound to the controls of the IForm specified in the MemberForm property.

Exceptions

Exception Type Condition
DataSourceException The LoaderControl failed to initialize the data source (business object).
LoaderException The LoaderControl doesn't contain a MemberForm.

See Also

LoaderControl Class | suite4.net.FormDatabase Namespace