GrapeCity.Win.MultiRow Namespace > GcMultiRow Class : FreezeBottomRowCount Property |
<DefaultValueAttribute()> <SRDescriptionAttribute("Indicates the number of the bottom frozen rows.")> <SRCategoryAttribute("Behavior")> Public Property FreezeBottomRowCount As Integer
Dim instance As GcMultiRow Dim value As Integer instance.FreezeBottomRowCount = value value = instance.FreezeBottomRowCount
[DefaultValue()] [SRDescription("Indicates the number of the bottom frozen rows.")] [SRCategory("Behavior")] public int FreezeBottomRowCount {get; set;}
Exception | Description |
---|---|
System.ArgumentOutOfRangeException | The specified value is less than 0. |
If this property's value is more than the RowCount minus the FreezeTopRowCount, the GcMultiRow control freezes all of the rows in the control. When the row count minus the FreezeTopRowCount is more than this property's value, nonfrozen rows appear.
If the total height of the frozen rows (including top frozen rows and bottom frozen rows) is greater than the height of the control's row area, the whole control is frozen. This situation should be avoided.
void setBottomFreezeButton_Click(object sender, EventArgs e) { if (this.gcMultiRow1.FreezeBottomRowCount == 0) { // Freeze some rows in bottom of gcMultiRow. this.gcMultiRow1.FreezeBottomRowCount = 2; } else { // Unfreeze rows in bottom of gcMultiRow. this.gcMultiRow1.FreezeBottomRowCount = 0; } }
Private Sub setBottomFreezeButton_Click(ByVal sender As Object, ByVal e As EventArgs) Handles setBottomFreezeButton.Click If Me.gcMultiRow1.FreezeBottomRowCount = 0 Then ' Freeze some rows in bottom of gcMultiRow. Me.gcMultiRow1.FreezeBottomRowCount = 2 Else ' Unfreeze rows in bottom of gcMultiRow. Me.gcMultiRow1.FreezeBottomRowCount = 0 End If End Sub
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