ArcGIS Pro 3.1 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / TableView Class / CanResetFieldOrder Property
Example

In This Topic
    CanResetFieldOrder Property (TableView)
    In This Topic
    Resets the field order in the table view.
    Syntax
    public bool CanResetFieldOrder {get;}
    Public ReadOnly Property CanResetFieldOrder As Boolean
    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