Skip to content

DevExpress-Examples/reporting-winforms-custom-controls-for-editing-report-content-in-print-preview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Reporting for WinForms - How to use custom controls for editing report content in Print Preview

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.

Files to Review

Documentation

More Examples

About

How to create and register custom editors to use them for editing the content of report controls in Print Preview in WinForms

Topics

Resources

License

Stars

Watchers

Forks