Search Results for

    Show / Hide Table of Contents

    Class Column

    This class represents a single data column in a DataSourceBase.

    Inheritance
    System.Object
    Base
    DataComponentBase
    Column
    DataSourceBase
    Implements
    IFRSerializable
    IParent
    Inherited Members
    DataComponentBase.Alias
    DataComponentBase.Enabled
    DataComponentBase.ReferenceName
    DataComponentBase.Reference
    DataComponentBase.IsAliased
    DataComponentBase.Assign(Base)
    DataComponentBase.InitializeComponent()
    Base.Name
    Base.Restrictions
    Base.Flags
    Base.Parent
    Base.BaseName
    Base.ClassName
    Base.Report
    Base.Page
    Base.ChildObjects
    Base.AllObjects
    Base.ZOrder
    Base.IsAncestor
    Base.IsDesigning
    Base.IsPrinting
    Base.IsRunning
    Base.OriginalComponent
    Base.Disposed
    Base.SetProp(Base, Base)
    Base.FloatDiff(Single, Single)
    Base.DeserializeSubItems(FRReader)
    Base.ExtractDefaultMacros(String)
    Base.Dispose(Boolean)
    Base.Dispose()
    Base.SetFlags(Flags, Boolean)
    Base.SetReport(Report)
    Base.SetParent(Base)
    Base.SetParentCore(Base)
    Base.FindObject(String)
    Base.CreateUniqueName()
    Base.Clear()
    Base.Deserialize(FRReader)
    Base.BaseAssign(Base)
    Base.AssignAll(Base)
    Base.HasParent(Base)
    Base.HasFlag(Flags)
    Base.HasRestriction(Restrictions)
    Base.InvokeEvent(String, Object)
    Base.OnAfterLoad()
    Base.GetCustomScript()
    Base.ExtractMacros()
    Base.IsHaveToConvert(Object)
    Base.GetConvertedObjects()
    Base.ForEachAllConvectedObjects(Object)
    Namespace: FastReport.Data
    Assembly: FastReport.Base.dll
    Syntax
    public class Column : DataComponentBase, IDisposable, IFRSerializable, IParent

    Constructors

    Column()

    Initializes a new instance of the Column class with default settings.

    Declaration
    public Column()

    Properties

    BindableControl

    Gets or sets a value that specifies the type of a control that will be created when you drop this column on a report page.

    Declaration
    public ColumnBindableControl BindableControl { get; set; }
    Property Value
    Type Description
    ColumnBindableControl
    Remarks

    If you need to specify the custom type, use the CustomBindableControl property instead.

    Calculated

    Gets or sets a value that indicates whether this column is calculated.

    Declaration
    public bool Calculated { get; set; }
    Property Value
    Type Description
    System.Boolean
    Remarks

    You should specify the Expression property for calculated columns.

    Columns

    Gets the collection of child columns.

    Declaration
    public ColumnCollection Columns { get; }
    Property Value
    Type Description
    ColumnCollection

    CustomBindableControl

    Gets or sets a name of custom bindable control.

    Declaration
    public string CustomBindableControl { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    Use this property if you want to bind a column to custom object type. You need to specify the type name of your object; that object must be registered in FastReport using the RegisteredObjects.Add method.

    DataType

    Gets or sets the type of data supplied by this column.

    Declaration
    public Type DataType { get; set; }
    Property Value
    Type Description
    System.Type

    Expression

    Gets or sets expression of the calculated column.

    Declaration
    public string Expression { get; set; }
    Property Value
    Type Description
    System.String
    Remarks

    This property is used if the Calculated property is true.

    Format

    Gets or sets the format of this column.

    Declaration
    public ColumnFormat Format { get; set; }
    Property Value
    Type Description
    ColumnFormat
    Remarks

    This property is used when you drag a column from the Data window to the report page. FastReport will create a "Text" object and set its "Format" property to the corresponding format. By default, this property is set to Auto. It means that the format will be determined automatically depending on the DataType property.

    PropDescriptor

    Gets or sets the business object property descriptor which this column is bound to.

    Declaration
    public PropertyDescriptor PropDescriptor { get; set; }
    Property Value
    Type Description
    PropertyDescriptor

    PropName

    Gets or sets the business object property name which this column is bound to.

    Declaration
    public string PropName { get; set; }
    Property Value
    Type Description
    System.String

    Methods

    AddChild(Base)

    Declaration
    public virtual void AddChild(Base child)
    Parameters
    Type Name Description
    Base child

    CanContain(Base)

    Declaration
    public virtual bool CanContain(Base child)
    Parameters
    Type Name Description
    Base child
    Returns
    Type Description
    System.Boolean

    GetChildObjects(ObjectCollection)

    Declaration
    public virtual void GetChildObjects(ObjectCollection list)
    Parameters
    Type Name Description
    ObjectCollection list

    GetChildOrder(Base)

    Declaration
    public int GetChildOrder(Base child)
    Parameters
    Type Name Description
    Base child
    Returns
    Type Description
    System.Int32

    GetExpressions()

    Declaration
    public override string[] GetExpressions()
    Returns
    Type Description
    System.String[]
    Overrides
    Base.GetExpressions()

    RemoveChild(Base)

    Declaration
    public virtual void RemoveChild(Base child)
    Parameters
    Type Name Description
    Base child

    Serialize(FRWriter)

    Declaration
    public override void Serialize(FRWriter writer)
    Parameters
    Type Name Description
    FRWriter writer
    Overrides
    DataComponentBase.Serialize(FRWriter)

    SetChildOrder(Base, Int32)

    Declaration
    public void SetChildOrder(Base child, int order)
    Parameters
    Type Name Description
    Base child
    System.Int32 order

    SetName(String)

    Declaration
    public override void SetName(string value)
    Parameters
    Type Name Description
    System.String value
    Overrides
    DataComponentBase.SetName(String)

    UpdateLayout(Single, Single)

    Declaration
    public void UpdateLayout(float dx, float dy)
    Parameters
    Type Name Description
    System.Single dx
    System.Single dy

    Implements

    IFRSerializable
    IParent
    Back to top © 1998-2025 Copyright Fast Reports Inc.