Back to Devexpress

Tutorial: WinExplorer View - Item Customization

windowsforms-114754-controls-and-libraries-data-grid-getting-started-walkthroughs-winexplorer-view-tutorial-winexplorer-view-item-customization.md

latest3.0 KB
Original Source

Tutorial: WinExplorer View - Item Customization

  • Jan 23, 2019
  • 3 minutes to read

This walkthrough is a transcript of the WinExplorer View - Item Customization video available on the DevExpress YouTube Channel.

In this tutorial, you will learn how to customize each of the seven display styles available in the WinExplorer View.

Customizing View Style Options

Select the View in the Level Designer and then expand the WinExplorerView.OptionsViewStyles property. You will see properties corresponding to all available display styles.

  • Description Visibility

  • Item Width

  • Margins and Indents

  • Image Size

Customizing Appearance Settings

The WinExplorerView.Appearance group provides property sections to modify appearances of all View elements. To see how this works, change the hovered styles for text (WinExplorerViewAppearances.ItemHovered) and description (WinExplorerViewAppearances.ItemDescriptionHovered) by setting the ForeColor to DodgerBlue. In the WinExplorerViewAppearances.GroupNormal section, set the ForeColor property Red.

Run the application to see these elements painted with custom colors.

Enabling Read-Only Mode

By default, the WinExplorer View allows data editing. When users double-click description or item caption at runtime, an editor appears that allows them to modify the clicked text. To enable read-only mode, set the ColumnViewOptionsBehavior.Editable property to false.

See Also

Tutorial: WinExplorer View - Basics

Tutorial: WinExplorer View - Context Buttons

WinExplorer View