ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / CanShowAllFields Property
Example

In This Topic
    CanShowAllFields Property (TableView)
    In This Topic
    Determines if the table view can show all fields.
    Syntax
    Public ReadOnly Property CanShowAllFields As Boolean
    public bool CanShowAllFields {get;}
    Example
    Show or Hide Fields
    {
      // get list of hidden fields
      var hiddenFields = tableView.GetHiddenFields();
    
      // show all fields
      if (tableView.CanShowAllFields)
        tableView.ShowAllFields();
    
      // hide only "CITY_FIPS", "STATE_FIPS"
      if (tableView.CanShowAllFields)
      {
        // show all fields
        tableView.ShowAllFields();
        tableView.SetHiddenFields(["CITY_FIPS", "STATE_FIPS"]);
      }
    
      // add "STATE_NAME to set of hidden fields
      tableView.SetHiddenFields(["STATE_NAME"]);
    
      // hide selected fields
      if (tableView.CanHideSelectedFields)
        tableView.HideSelectedFields();
    }
    Requirements

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

    ArcGIS Pro version: 3.1 or higher.
    See Also