[]
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).
[C1ClassSerialization(true)]
public class DataSetField : NamedCollectionItem, ICloneable
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. |
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. |
Name | Description |
---|---|
AssignFrom(NamedCollectionItem) | Assigns (copies) properties from another DataSetField to the current object. |