DataGridViewHeaderCell.Frozen Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Gets a value indicating whether the cell is frozen.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public override bool Frozen { get; }

Property Value

Type: System.Boolean

true if the cell is frozen; otherwise, false. The default is false if the cell is detached from a DataGridView.

The Frozen property is true if the cell belongs to a frozen row or column, or if the cell is the top-left header cell. A cell, row, or column is frozen when its State property has a value of DataGridViewElementStates.Frozen

.NET Framework
Available since 2.0
Return to top