The DataSetField type exposes the following members.

Constructors

  Name Description
Public method DataSetField()()()()
Initializes a new instance of the DataSetField class.
Public method DataSetField(String)
Initializes a new instance of the DataSetField class, assigning the Name of this field.
Public method DataSetField(String, String)
Initializes a new instance of the DataSetField class, assigning the Name and the associated DB field.

Methods

  Name Description
Public method AssignFrom
Assigns (copies) properties from another DataSetField to the current object.
(Overrides NamedCollectionItem..::..AssignFrom(NamedCollectionItem).)
Protected method SetName
Sets the name of the current item.
(Inherited from NamedCollectionItem.)
Protected method SetNameInt
For internal use.
(Inherited from NamedCollectionItem.)

Properties

  Name Description
Public property DataField
Gets or sets the name of the corresponding DB field in the query.

If this property is not empty, the field is a data field (as opposed to a calculated field).

Public property Expression
Gets the Expression used to calculate the value of the current field.

If this expression is not empty, the field is a calculated field (as opposed to a data field).

Public property ExpressionText
Gets or sets the text of the Expression used to calculate the value of the current field.

This is a shortcut to the Text property on the expression returned by Expression.

Public property Name
Gets or sets the unique name of the current object. If an item with the specified name already exists in the collection, an exception is thrown.
(Inherited from NamedCollectionItem.)
Public property Owner
Gets the NamedCollection containing the current object.
(Inherited from NamedCollectionItem.)

See Also