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

How to hide a side component's properties from the End-User Designer Properties window

$
0
0
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.

In this example, we are using the SqlDataSource component as a report's data source. For more information on it, see How to: Bind a Report to a Database.

See also:
Customize an End-User Report Designer 


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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