FlexGrid for WinForms
AllowResizing Property (RowCol)



Gets or sets whether the user can resize this row or column with the mouse.
Syntax
'Declaration
 
<C1CategoryAttribute("Behavior")>
<C1DescriptionAttribute("Gets or sets whether the user can resize this row or column with the mouse.")>
<DefaultValueAttribute()>
Public Overridable Property AllowResizing As Boolean
'Usage
 
Dim instance As RowCol
Dim value As Boolean
 
instance.AllowResizing = value
 
value = instance.AllowResizing
[C1Category("Behavior")]
[C1Description("Gets or sets whether the user can resize this row or column with the mouse.")]
[DefaultValue()]
public virtual bool AllowResizing {get; set;}
[C1Category("Behavior")]
[C1Description("Gets or sets whether the user can resize this row or column with the mouse.")]
[DefaultValue()]
public:
virtual property bool AllowResizing {
   bool get();
   void set (    bool 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 then 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 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

RowCol Class
RowCol Members

 

 


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

Send Feedback