I have recently updated the HideProtectedContentController code in the How to: Hide the 'Protected Content' Columns in a List View and Property Editors in a Detail View topic. The main change is that the HideProtectedContentController now checks if a visibility state for the target UI element is customized by existing Conditional Appearance rules before applying its own customizations.
This prevents possible conflicts with existing appearance rules.
If you are using the HideProtectedContentController code in your projects, we would greatly appreciate it if you try the updated code and share your feedback here in comments.
Please note that HideProtectedContentController may make a negative impact on the application performance in complex scenarios.
Dear Dennis,
ReplyDeletein my solution, when I am on a ListView
this code is never give back a "true" value
if (View is ListView)
{
if (e.Item is ColumnWrapper)
{
...
}
...
}
e.Item is an instance of {DevExpress.ExpressApp.Win.Editors.GridViewRowCellStyleEventArgsAppearanceAdapter} class.
do you have any suggestion for me?
Thank you in advance
David
It happens in my custom class derived from SecuritySystemUser
Deletepublic class MyUser : SecuritySystemUser, IMyUser, IMyPersistentBase, IOperationPermissionProvider, IResource
{
...
}
We tested this scenario, but could not replicate this behavior locally. Would you please attach your problematic project in a ticket submitted using the https://www.devexpress.com/ask service?
Delete