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

TreeListView.CustomRowAppearance Event

Allows overriding the row’s foreground and background settings.

Namespace: DevExpress.Xpf.Grid

Assembly: DevExpress.Xpf.Grid.v24.2.dll

NuGet Package: DevExpress.Wpf.Grid.Core

#Declaration

public event EventHandler<CustomRowAppearanceEventArgs> CustomRowAppearance

#Event Data

The CustomRowAppearance event's data class is CustomRowAppearanceEventArgs. The following properties provide information specific to this event:

Property Description
ConditionalValue Gets the value of the CustomAppearanceEventArgs.Property property calculated by the conditional formatting mechanism. Inherited from CustomAppearanceEventArgs.
Handled Gets or sets whether appearance customization is handled and no default processing is required. Inherited from CustomAppearanceEventArgs.
OriginalValue Gets the original value of the CustomAppearanceEventArgs.Property property. Inherited from CustomAppearanceEventArgs.
Property Gets a dependency property whose value is changed by the conditional formatting mechanism. Inherited from CustomAppearanceEventArgs.
Result Gets or sets the value of the CustomAppearanceEventArgs.Property property applied to the control. Inherited from CustomAppearanceEventArgs.
RowHandle Gets a handle of a row for which an event has been raised.
RowSelectionState Gets a row’s selection state.
Source Gets the View that raised the event.

#Remarks

Refer to the Formatting Focused Cells and Rows topic to learn how to override the focused row background with the background color defined in the conditional formatting rules.

See Also