Share via


DataField Property (ModHFGrid)

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Returns the name of the field bound to the specified column in the specified band. This property is read-only.

Syntax

object.DataField(number, index) [= string]

The DataField property syntax has these parts:

Part Description
object An object expression that evaluates to the ModHFGrid Control object.
number A Long value that specifies the band that contains the column to affect.
index A Long value that either specifies the column to get or sets the binding field.
string A string expression that evaluates the name of one of the fields in the Recordset object specified by the data provider.

Remarks

When number is unspecified, it defaults to 0. Therefore, when the ModHFGrid is not bound to a hierarchical Recordset, using 0 and not specifying number both have the same result.

If the ModHFGrid is not bound and the number and index are valid, DataField returns an empty string.

If a Refresh is executed after the DataProvider property is changed, the Recordset object might have different fields. This might invalidate the DataField settings of the bound columns and produce a trappable error.

See Also

ModHFGrid Control