FlexGrid for WinForms
AllowResizing Property (C1FlexGridBase)



Gets or sets whether the user is allowed to resize rows and columns with the mouse.
Syntax
'Declaration
 
<C1DescriptionAttribute("Gets or sets whether the user is allowed to resize rows and columns with the mouse.")>
<DefaultValueAttribute()>
<C1CategoryAttribute("Behavior")>
Public Property AllowResizing As AllowResizingEnum
'Usage
 
Dim instance As C1FlexGridBase
Dim value As AllowResizingEnum
 
instance.AllowResizing = value
 
value = instance.AllowResizing
[C1Description("Gets or sets whether the user is allowed to resize rows and columns with the mouse.")]
[DefaultValue()]
[C1Category("Behavior")]
public AllowResizingEnum AllowResizing {get; set;}
[C1Description("Gets or sets whether the user is allowed to resize rows and columns with the mouse.")]
[DefaultValue()]
[C1Category("Behavior")]
public:
property AllowResizingEnum AllowResizing {
   AllowResizingEnum get();
   void set (    AllowResizingEnum value);
}
Remarks

To resize rows or columns, the mouse must be over the fixed area of the grid, and close to a border between rows or columns. The mouse pointer will change into a sizing pointer and the user can drag the row or column to change the row height or column width.

If a group of columns is selected (from first to last row) and the user resizes one of them, all selected columns are resized. The same applies to rows.

If column sizing is allowed, users may double-click the resizing area to resize a column so it will automatically fit the longest entry.

Rows with zero height and columns with zero width can't be resized by the user. If you want to make them very small but still resizable, set their height or width to one pixel, not to zero.

The BeforeResizeRow and BeforeResizeColumn events fire before resizing starts, and may be used to prevent resizing of specific rows and columns. The AfterResizeRow and AfterResizeColumn events fire after resizing, and may be used to validate the user's action and to update the display.

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