ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / ResetFieldOrder Method
Example

In This Topic
    ResetFieldOrder Method (TableView)
    In This Topic
    Resets the field order in the table view.
    Syntax
    public void ResetFieldOrder()
    Public Sub ResetFieldOrder() 
    Example
    Set Field Order
    var tv = TableView.Active;
    if (tv == null)
      return;
    
    if (tv.CanResetFieldOrder)
    {
      tv.ResetFieldOrder();
    
      var fldOrder = new List<string>();
      fldOrder.Add("STATE_NAME");
      fldOrder.Add("STATE_FIPS");
      await tv.SetFieldOrderAsync(fldOrder);
    }
    
    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3.1 or higher.
    See Also