This document is archived and information here might be outdated.  Recommended version.


IField.Editable Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (GeoDatabase)  

IField.Editable Property

Indicates if the field is editable.

[Visual Basic .NET]
Public ReadOnly Property Editable As Boolean
[C#]
public bool Editable {get;}
[C++]
HRESULT get_Editable(
  VARIANT_BOOL* IsEditable
);
[C++]

Parameters IsEditable [out, retval] IsEditable is a parameter of type VARIANT_BOOL

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

The Editable property of a field should always be set to TRUE.  Setting it to FALSE will prevent all users from editing the contents of the field.  To set a field to be read-only, use the IFieldInfo3.ReadOnly property.

It is best to loop through the fields of a feature and skip the fields that are not editable, rather than allowing users to attempt to edit fields that cannot be edited.

See Also

IField Interface

.NET Samples

Bind a geodatabase table to a .NET control (Code Files: FieldPropertyDescriptor)

.NET Related Topics

Working with fields