Spread for ASP.NET 9.0 Product Documentation > Developer's Guide > Customizing User Interaction > Customizing Interaction with Rows and Columns > Freezing Rows and Columns |
Frozen rows and frozen columns do not scroll when the user uses the scroll bar or navigation keys in the component. This is useful if you need information in non-header rows or columns to stay visible regardless of where in the sheet the user navigates. Frozen rows and frozen columns are supported with Microsoft Internet Explorer (IE) and Mozilla Firefox when the FpSpread EnableClientScript property is true.
Set the FrozenColumnCount or FrozenRowCount property in the sheet of the component.
This example code sets FrozenColumnCount and FrozenRowCount.
C# |
Copy Code
|
---|---|
FpSpread1.Sheets[0].FrozenColumnCount = 2; FpSpread1.Sheets[0].FrozenRowCount = 1; |
VB |
Copy Code
|
---|---|
FpSpread1.Sheets(0).FrozenColumnCount = 2 FpSpread1.Sheets(0).FrozenRowCount = 1 |