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

In This Topic
    ShowAllFields Method (TableView)
    In This Topic
    Shows all fields on the table view.
    Syntax
    Public Sub ShowAllFields() 
    public void ShowAllFields()
    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