[Expand]General Information
[Collapse]WinForms Controls
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications, and Dialogs
  [Collapse]Editors and Simple Controls
   [Collapse]Simple Editors
    [Expand]Included Components
    [Expand]Editors Structure
    [Expand]Editors Features
    [Collapse]Member Tables
      Member Table: Formatting
   [Expand]Lookup Editors
   [Expand]Token Edit Control
   [Expand]Breadcrumb Edit Control
   [Expand]Range Control
   [Expand]Image Slider
    Camera Control
    Templated ListBox Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Property Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Map Control
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]PDF Viewer
  [Expand]TreeMap Control
  [Expand]Sunburst Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Report and Dashboard Server
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Member Table: Formatting



An editor's RepositoryItem.DisplayFormat property

This property allows you to specify the settings used to automatically format the editor's values in display mode (when the editor is not active). You can:

  • use the standard or custom format strings (the most used approach to format date/time and numeric values);
  • use the composite formatting feature that allows you to add custom text to the output string;
  • apply a custom formatter that will handle the format operations.

For more information on these scenarios, see the Formatting Approaches topic.

An editor's RepositoryItem.EditFormat property

This property specifies the settings used to format values when an editor is about to switch to edit mode. These do not restrict an end-user's input and do not force the editor to keep the initial formatting.

Format settings for the RepositoryItem.EditFormat property can be specified in the same manner as for the RepositoryItem.DisplayFormat property.

An editor's RepositoryItem.FormatEditValue event

Allows you to format values manually.

An editor's RepositoryItem.CustomDisplayText event

Allows you to provide custom display text within editors.

An editor's RepositoryItemTextEdit.Mask property.

This allows you to enable mask mode and specify mask settings for the editor. A mask restricts an end-user's input as it provides a pattern for entering values. Moreover, the mask used to enter values is also applied to format values in display mode if the MaskProperties.UseMaskAsDisplayFormat property is set to true.

Is this topic helpful?​​​​​​​