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

LayoutView.CustomSeparatorStyle Event

Enables you to change the separator’s width and customize its appearance.

Namespace: DevExpress.XtraGrid.Views.Layout

Assembly: DevExpress.XtraGrid.v24.2.dll

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

#Declaration

[DXCategory("Behavior")]
public event LayoutViewCustomSeparatorStyleEventHandler CustomSeparatorStyle

#Event Data

The CustomSeparatorStyle event's data class is DevExpress.XtraGrid.Views.Layout.Events.LayoutViewCustomSeparatorStyleEventArgs.

#Remarks

To specify the separator’s width, assign the required width to the e.Width parameter. To customize the separator’s appearance, use the settings provided by the e.Appearance object.

Important

Do not change cell values, modify the control’s layout, or change the control’s object model in the events used for custom control painting. Actions that update the layout can cause the control to malfunction.

See Also