Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

WinForms End-User Designer - How to hide a property in the Properties window

$
0
0
This example demonstrates how to hide connection (ConnectionName and ConnectionParameter) properties of the SqlDataSource component set as a a report's data source.

You can customize the Properties window for the report's End-User Designer, so only required properties are displayed.
The How to: Hide Properties from End-Users in the Report Designer example illustrates how to implement this. The idea is to handle the static XtraReport.FilterComponentProperties event and hide (or remove) an unnecessary property from the entire control's properties collection.
Please note that this approach is applicable for a report, its bands and XRControls (XRControl class descendants).

If you want to hide properties for a non-XRControl descendant, for instance, for the report's data source, we recommend the following. 
In the XRDesignMdiController.DesignPanelLoaded event handler, substitute the default ITypeDescriptorFilterService object with your custom one. In this custom ITypeDescriptorFilterService class, override the FilterProperties method to remove unnecessary properties.

See also:
Customize an End-User Report Designer


WPF: WPF Report Designer - How to hide a property in the Properties window

Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>