HeaderPane
Main
Hide
Share Link
Print

DataSource Property, SftMask Object

Defines the data source through which the control is bound to a database.

Syntax

Get

C#object Source = object.DataSource;
VB.NETSource = object.DataSource As Object
C++IUnknownPtr Source = object->DataSource;
IUnknownPtr Source = object->GetDataSource();
CHRESULT object->get_DataSource(IUnknown** Source);

PutRef

C#object object.DataSource = Source;
VB.NETobject.DataSource = Source As Object
C++IUnknown* object->DataSource = Source;
void object->PutRefDataSource(IUnknown* Source);
CHRESULT object->putref_DataSource(IUnknown* Source);

object

A SftMask 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.

Comments

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


Last Updated 11/15/2026 - (email)
© 2026 Softel vdm, Inc.