FlexGrid for WinForms
AutoResize Property



Gets or sets whether column widths are automatically adjusted when data is loaded.
Syntax
'Declaration
 
<C1DescriptionAttribute("Gets or sets whether column widths are automatically adjusted when data is loaded.")>
<C1CategoryAttribute("Data")>
<DefaultValueAttribute()>
Public Property AutoResize As Boolean
'Usage
 
Dim instance As C1FlexGridBase
Dim value As Boolean
 
instance.AutoResize = value
 
value = instance.AutoResize
[C1Description("Gets or sets whether column widths are automatically adjusted when data is loaded.")]
[C1Category("Data")]
[DefaultValue()]
public bool AutoResize {get; set;}
[C1Description("Gets or sets whether column widths are automatically adjusted when data is loaded.")]
[C1Category("Data")]
[DefaultValue()]
public:
property bool AutoResize {
   bool get();
   void set (    bool value);
}
Remarks

This property works when the control is bound to a DataSource.

If AutoResize is set to true, the control automatically resizes its columns to fit the widest entry every time new data is read from the data source.

If the data source contains a large number of rows and columns, the automatic resizing may take a relatively long time. In these cases, you should consider setting AutoResize to false and setting the column widths directly in code.

You may also use the AutoSizeCols(Int32,Int32,Int32,Int32,Int32,AutoSizeFlags) method to adjust the column widths automatically.

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