ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Editing.Controls Namespace / TableControl Class / GetFieldIndex Method
The name of the field.
Version

GetFieldIndex Method (TableControl)
Gets the index of the field with the given name.
Syntax
public int GetFieldIndex( 
   string fieldName
)

Parameters

fieldName
The name of the field.

Return Value

The index of the field. -1 is returned if the field name is not found.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also