Defines the field name to which the control is bound.
Get
| C# | string FieldName = object.DataField; |
| VB.NET | FieldName = object.DataField As String |
| C++ | _bstr_t FieldName = object->DataField; _bstr_t FieldName = object->GetDataField(); |
| C | HRESULT object->get_DataField(BSTR* FieldName); |
Put
| C# | string object.DataField = FieldName; |
| VB.NET | object.DataField = FieldName As String |
| C++ | _bstr_t object->DataField = FieldName; void object->PutDataField(_bstr_t FieldName); |
| C | HRESULT object->put_DataField(BSTR FieldName); |
object
FieldName
A string that defines the name of one of the fields in the recordset object specified by a data source (see DataSource property).
The DataField property defines the field name to which the control is bound.
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.
See Also SftMask Object | Object Hierarchy