This example demonstrates how to create and register custom editors to be used for editing the content of report controls in Print Preview. In particular, it shows how to create a combo box editor, a date editor with a custom format, and a standard text editor with a phone number mask.
The following image illustrates the resulted custom controls in Print Preview:
To implement a custom editor, create a new instance of an appropriate RepositoryItem descendant and specify its settings. Then, call the EditingFieldExtensionsWin.RegisterEditor method to register this editor. Enable editing of a control's content by setting the EditOptions.Enabled property to true
and assign the created editor to the EditorName property.
To register the standard text editor with a custom mask, use the EditingFieldExtensionsWin.RegisterMaskEditor method.
- Reporting for WinForms - Create a Custom Progress Bar Control
- Reporting for Web Forms - How to use custom controls for editing report content in Print Preview
(you will be redirected to DevExpress.com to submit your response)