Back to Devexpress

TreeListView.CustomCellAppearance Event

wpf-devexpress-dot-xpf-dot-grid-dot-treelistview-c943afde.md

latest4.6 KB
Original Source

TreeListView.CustomCellAppearance Event

Allows overriding the cell’s foreground and background settings.

Namespace : DevExpress.Xpf.Grid

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

NuGet Package : DevExpress.Wpf.Grid.Core

Declaration

csharp
public event EventHandler<CustomCellAppearanceEventArgs> CustomCellAppearance
vb
Public Event CustomCellAppearance As EventHandler(Of CustomCellAppearanceEventArgs)

Event Data

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

PropertyDescription
CellSelectionStateGets a cell’s selection state.
ColumnGets a column that contains the corresponding cell.
ConditionalValueGets the value of the CustomAppearanceEventArgs.Property property calculated by the conditional formatting mechanism. Inherited from CustomAppearanceEventArgs.
HandledGets or sets whether appearance customization is handled and no default processing is required. Inherited from CustomAppearanceEventArgs.
IsEditorVisibleGets whether an editor is visible for the corresponding cell.
OriginalValueGets the original value of the CustomAppearanceEventArgs.Property property. Inherited from CustomAppearanceEventArgs.
PropertyGets a dependency property whose value is changed by the conditional formatting mechanism. Inherited from CustomAppearanceEventArgs.
ResultGets or sets the value of the CustomAppearanceEventArgs.Property property applied to the control. Inherited from CustomAppearanceEventArgs.
RowHandleGets a handle of a row for which an event has been raised. Inherited from CustomRowAppearanceEventArgs.
RowSelectionStateGets a row’s selection state. Inherited from CustomRowAppearanceEventArgs.
SourceGets the View that raised the event. Inherited from CustomRowAppearanceEventArgs.

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.

The CustomCellAppearance event fires only when the TreeListControl works in optimized mode.

See Also

TreeListView Class

TreeListView Members

DevExpress.Xpf.Grid Namespace