Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

VGridControlBase.IsCellDefaultValue(BaseRow, Int32) Method

Returns whether the specified cell’s value is the default value.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid

#Declaration

public virtual bool IsCellDefaultValue(
    BaseRow row,
    int recordIndex
)

#Parameters

Name Type Description
row BaseRow

A BaseRow object which identifies the row.

recordIndex Int32

An integer which identifies the record which contains the required cell.

#Returns

Type Description
Boolean

true if the specified cell’s value is the default value; otherwise, false.

#Remarks

The IsCellDefaultValue method can be called for the PropertyGridControl to determine whether a specific cell’s value is default or has been changed. The PropertyGridControl automatically calls this method to determine whether cells contain modified values, and if so, the corresponding cells are painted bold. The recordIndex parameter is ignored when calling the IsCellDefaultValue method for the PropertyGridControl.

For the VGridControl control, this method always returns true.

See Also