ComponentOne FlexPivot for WinForms
C1.Win.FlexPivot.4.8 Assembly / C1.Win.FlexPivot Namespace / C1FlexPivotGrid Class / AutoGenerateColumns Property

In This Topic
    AutoGenerateColumns Property (C1FlexPivotGrid)
    In This Topic
    Gets or sets whether columns are automatically created when the grid is bound to a data source.
    Syntax
    'Declaration
     
    Public Property AutoGenerateColumns As Boolean
    public bool AutoGenerateColumns {get; set;}
    Remarks
    By default, assigning a new C1.Win.C1FlexGrid.C1FlexGridBase.DataSource to the grid resets the column collection to reflect the data source schema. If you set C1.Win.C1FlexGrid.C1FlexGridBase.AutoGenerateColumns to false, the existing column layout will be preserved.
    See Also