FlexGrid for WinForms
AutoGenerateColumns Property



Gets or sets whether columns are automatically created when the grid is bound to a data source.
Syntax
'Declaration
 
<C1DescriptionAttribute("Gets or sets whether columns are automatically created when the grid is bound to a data source.")>
<C1CategoryAttribute("Data")>
<DefaultValueAttribute()>
Public Property AutoGenerateColumns As Boolean
'Usage
 
Dim instance As C1FlexGridBase
Dim value As Boolean
 
instance.AutoGenerateColumns = value
 
value = instance.AutoGenerateColumns
[C1Description("Gets or sets whether columns are automatically created when the grid is bound to a data source.")]
[C1Category("Data")]
[DefaultValue()]
public bool AutoGenerateColumns {get; set;}
[C1Description("Gets or sets whether columns are automatically created when the grid is bound to a data source.")]
[C1Category("Data")]
[DefaultValue()]
public:
property bool AutoGenerateColumns {
   bool get();
   void set (    bool value);
}
Remarks
By default, assigning a new DataSource to the grid resets the column collection to reflect the data source schema. If you set AutoGenerateColumns to false, the existing column layout will be preserved.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

C1FlexGridBase Class
C1FlexGridBase Members

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Send Feedback