ColumnProvider.IsCustomProperty Property

Definition

Gets or sets a value that indicates whether the column is an additional property that is not in the model's data context.

C#
public virtual bool IsCustomProperty { get; protected set; }

Property Value

true if the column is an additional property that is not in the model's data context; otherwise, false.

Remarks

Columns that are not in the data context typically come from a view or calculated property. The value of the IsCustomProperty property can be used to determine whether column operations such as sorting are supported. For example, the implementation of the System.Linq.IQueryable interface of the data model will not support sorting on properties that return true for the IsCustomProperty property, because the column does not exist in the database.

Applies to

Product Versions
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1