Skip to main content

LayoutViewCardDifferences.AddItemDifference(String, LayoutItemDifferenceType, Object) Method

Adds a difference record, identifying how a layout item’s (card field’s) settings differ from the default settings.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v22.2.dll

NuGet Package: DevExpress.Win.Grid


public void AddItemDifference(
    string itemName,
    LayoutItemDifferenceType type,
    object value


Name Type Description
itemName String

A string that identifies the layout item (card field).

type LayoutItemDifferenceType

A LayoutItemDifferenceType value that specifies the setting to be changed

value Object

A new value for the setting.


The itemName parameter specifies a card field’s name (the name of a corresponding LayoutViewField object). Groups, tabbed groups, separators, etc are also identified by names.

See Also