ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / SetFrozenFieldsAsync Method
Example

In This Topic
    SetFrozenFieldsAsync Method (TableView)
    In This Topic
    Sets the specified fields to be frozen in the table view. Frozen fields are promoted to be the first visible fields in the table view and stay visible as the table view is scrolled horizontally. A divider bar is placed between the frozen fields and the remaining fields in the table. The specified list of fields are added to any existing fields that are already frozen.
    Syntax
    Public Function SetFrozenFieldsAsync( _
       ByVal fieldNames As List(Of String) _
    ) As Task
    public Task SetFrozenFieldsAsync( 
       List<string> fieldNames
    )

    Parameters

    fieldNames
    Example
    Freeze Fields
    {
      // get list of frozen fields
      var frozenfields = tableView.GetFrozenFields();
    
      // unfreeze all fields
      tableView.ClearAllFrozenFieldsAsync();
    
      // freeze a set of fields
      tableView.SetFrozenFieldsAsync(["CITY_FIPS", "STATE_FIPS"]);
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.1 or higher.
    See Also