[]
        
(Showing Draft Content)

C1.C1Preview.DataBinding.DataSetField

DataSetField Class

Represents a field in a DataSet. The field may represent a native DB field (assigned via the DataField property), or may be calculated by an expression (set by the Expression property).

Inheritance
DataSetField
Implements
Namespace: C1.C1Preview.DataBinding
Assembly: C1.PrintDocument.8.dll
Syntax
[C1ClassSerialization(true)]
public class DataSetField : NamedCollectionItem, ICloneable

Constructors

Name Description
DataSetField()

Initializes a new instance of the DataSetField class.

DataSetField(string)

Initializes a new instance of the DataSetField class, assigning the Name of this field.

DataSetField(string, string)

Initializes a new instance of the DataSetField class, assigning the Name and the associated DB field.

Properties

Name Description
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).

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).

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.

Methods

Name Description
AssignFrom(NamedCollectionItem)

Assigns (copies) properties from another DataSetField to the current object.

See Also