GrapeCity MultiRow Windows Forms Documentation
ResizeMode Property (Cell)
Example 


Gets or sets a value that indicates how the Cell is resized.
Syntax
<SRCategoryAttribute("Behavior")>
<SRDescriptionAttribute("Indicates the mode that determines how a cell is resized.")>
Public Property ResizeMode As ResizeMode
Dim instance As Cell
Dim value As ResizeMode
 
instance.ResizeMode = value
 
value = instance.ResizeMode
[SRCategory("Behavior")]
[SRDescription("Indicates the mode that determines how a cell is resized.")]
public ResizeMode ResizeMode {get; set;}

Property Value

One of the ResizeMode values. The default is ResizeMode.None.
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentExceptionThe assigned value is not one of the ResizeMode values.
Remarks
The resizing direction is different if the cell is in a different Section. In ColumnHeaderSection or Row, you can resize the cell's right and bottom edge to expand or reduce the cell's size. In ColumnFooterSection, you can resize the cell's right and top edge to expand or reduce the cell's size.
Example
The following code example shows how to use this property to control whether a cell can be resized. This code example is part of a larger example provided for the GcMultiRow.AllowUserToResize class.
void makeFirstCellResizable_Click(object sender, EventArgs e)
        {
            Cell cell = this.gcMultiRow1.Rows[0][0];

            // Make cell resizable in two directions.
            // You can make any cell resize (or not) by changing this property's value.
            cell.ResizeMode = ResizeMode.Both;
        }
Private Sub makeFirstCellResizable_Click(ByVal sender As Object, ByVal e As EventArgs) Handles 
makeFirstCellResizable.Click
        Dim cell As Cell = Me.gcMultiRow1.Rows(0)(0)

        ' Make cell resizable in two directions.
        ' You can make any cell resize (or not) by changing this property's value.
        cell.ResizeMode = ResizeMode.Both
    End Sub
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

Cell Class
Cell Members

 

 


Copyright © GrapeCity, inc. All rights reserved.