Gets or sets the number of frozen rows or columns in the collection.
Namespace:
C1.Silverlight.FlexGridAssembly: C1.Silverlight.FlexGrid.4 (in C1.Silverlight.FlexGrid.4.dll)
Syntax
Examples
The code below implements an event handler that toggles row and column
freezing based on the cursor position (similar to the 'freeze panes' command
in Excel).
Copy CodeC#

// handle the Click event on the _chkFreeze CheckBox to // freeze/unfreeze rows/columns void _chkFreeze_Click(object sender, RoutedEventArgs e) { if (_chkFreeze.IsChecked.Value) { // freeze rows and columns above and to the left of the cursor _flex.Rows.Frozen = _flex.Selection.Row; _flex.Columns.Frozen = _flex.Selection.Column; } else { // unfreeze rows and columns _flex.Rows.Frozen = 0; _flex.Columns.Frozen = 0; } } |