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.
Using the Properties Window
- At design time, in the Properties window, select the FpSpread component.
- Select the Sheets property.
- Click the button to display the SheetView Collection Editor.
- In the Appearance section, set the number of frozen rows or columns using FrozenRowCount or FrozenColumnCount.
- Click OK to close the SheetView Collection Editor.
Using a Shortcut
Set the FrozenColumnCount or FrozenRowCount property in the sheet of the component.
Example
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 |
Using the Spread Designer
- Select Sheet from the drop-down combo box to the right of the designer.
- In the Appearance section, set the number for FrozenColumnCount or FrozenRowCount.
- From the File menu choose Apply and Exit to apply your changes to the component and exit Spread Designer.