Defines the data source through which the control is bound to a database.
Get
| C# | object Source = object.DataSource; |
| VB.NET | Source = object.DataSource As Object |
| C++ | IUnknownPtr Source = object->DataSource; IUnknownPtr Source = object->GetDataSource(); |
| C | HRESULT object->get_DataSource(IUnknown** Source); |
PutRef
| C# | object object.DataSource = Source; |
| VB.NET | object.DataSource = Source As Object |
| C++ | IUnknown* object->DataSource = Source; void object->PutRefDataSource(IUnknown* Source); |
| C | HRESULT object->putref_DataSource(IUnknown* Source); |
object
Source
Defines the data source through which the control is bound to a database. The object must implement the OLE DB DataSource interface. ADO Recordset objects are supported.
The DataSource property defines the data source through which the control is bound to a database.
When used as a bound control, SftMask can provide access to specific data in your database. SftMask manages a single field in a recordset and displays the value of a specific field in the current record. The DataSource property of the control defines the data source. The DataField property defines the field name in the recordset object created by the data source. Together, these properties define what data appears in the control.
Note: ADO Recordset objects are supported as valid data sources.
See Also SftMask Object | Object Hierarchy