DataKeyArray.IsReadOnly Property


Gets a value indicating whether the items in the collection can be modified.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public bool IsReadOnly { get; }

Property Value

Type: System.Boolean

false in all cases.

Use the IsReadOnly property to determine whether the items in the DataKeyArray collection can be modified.


This property has been overridden to always return false, to indicate that the DataKey objects in the DataKeyArray object can be added or removed. The DataKey objects themselves cannot be changed.

.NET Framework
Available since 2.0
Return to top