GrapeCity MultiRow Windows Forms Documentation
FreezeRightCellName Property
Example 


Gets or sets the cell name used to freeze (do not scroll) the right side of the control.
Syntax
<TypeConverterAttribute("GrapeCity.Win.MultiRow.Design.CellNameTypeConverter, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")>
<DefaultValueAttribute()>
<SRCategoryAttribute("Behavior")>
<SRDescriptionAttribute("Indicates the cell name to freeze (do not scroll) the control on the right side.")>
<RefreshPropertiesAttribute(RefreshProperties.All)>
<MergablePropertyAttribute(False)>
Public Property FreezeRightCellName As String
Dim instance As GcMultiRow
Dim value As String
 
instance.FreezeRightCellName = value
 
value = instance.FreezeRightCellName
[TypeConverter("GrapeCity.Win.MultiRow.Design.CellNameTypeConverter, GrapeCity.Win.MultiRow, Version=7.20.20141.0, Culture=neutral, PublicKeyToken=0f7a722ee3c2bdd9")]
[DefaultValue()]
[SRCategory("Behavior")]
[SRDescription("Indicates the cell name to freeze (do not scroll) the control on the right side.")]
[RefreshProperties(RefreshProperties.All)]
[MergableProperty(false)]
public string FreezeRightCellName {get; set;}

Property Value

A System.String value that represents the cell name used to freeze the right side of the control. The default is String.Empty.
Example
The following code example shows how to use this property to freeze cells. This code example is part of a larger example provided for the FreezeLines property.
void setRightFreezeButton_Click(object sender, EventArgs e)
        {
            // You can use FreezeRightCellIndex instead of FreezeRightCellName to indicate which cell will be frozen.
            if (string.IsNullOrEmpty(this.gcMultiRow1.FreezeRightCellName))
            {
                // Freeze some rows in top of gcMultiRow.
                this.gcMultiRow1.FreezeRightCellName = "textBoxCell10";
                // this.gcMultiRow1.FreezeRightCellIndex = 0;
            }
            else
            {
                // Unfreeze rows in top of gcMultiRow.
                this.gcMultiRow1.FreezeRightCellName = string.Empty;
                // this.gcMultiRow1.FreezeRightCellIndex = -1;
            }
        }
Private Sub setRightFreezeButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setRightFreezeButton.Click
        ' You can use FreezeRightCellIndex instead of FreezeRightCellName to indicate which cell will be frozen.
        If String.IsNullOrEmpty(Me.gcMultiRow1.FreezeRightCellName) Then
            ' Freeze some rows in top of gcMultiRow.
            ' this.gcMultiRow1.FreezeRightCellIndex = 0;
            Me.gcMultiRow1.FreezeRightCellName = "textBoxCell10"
        Else
            ' Unfreeze rows in top of gcMultiRow.
            ' this.gcMultiRow1.FreezeRightCellIndex = -1;
            Me.gcMultiRow1.FreezeRightCellName = String.Empty
        End If
    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

GcMultiRow Class
GcMultiRow Members
FreezeRightCellIndex Property
FreezeLines Property

 

 


Copyright © GrapeCity, inc. All rights reserved.