Back to Devexpress

Hide the Protected Content Columns in a List View and Property Editors in a Detail View

expressappframework-114008-data-security-and-safety-security-system-security-tiers-2-tier-security-integrated-mode-and-ui-level-hide-the-protected-content-columns-in-a-list-view-and-property-editors-in-a-detail-view.md

latest1.2 KB
Original Source

Hide the Protected Content Columns in a List View and Property Editors in a Detail View

  • Oct 10, 2025
  • 2 minutes to read

This topic describes how to use the Conditional Appearance Module in order to hide List View columns and Detail View Property Editors that are prohibited by the Security System and display the ‘*******‘ placeholders.

  • Add the Conditional Appearance Module to the platform-agnostic module project (if it was not added before). To do this, open the MySolution.Module\Module.cs file and add the following code to the Module constructor:

  • Implement the following Controller class in the platform-agnostic module project (MySolution.Module).

Note

  • HideProtectedContentController may have a negative impact on the application performance in complex scenarios.
  • Hidden states of list view columns are persisted in user model differences. So, if you will eventually grant access to a certain property, the view model needs to be manually adjusted or reset.