Log In
[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
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Collapse]Data Grid
   [Expand]Getting Started
   [Expand]Binding to Data
   [Expand]Grid View
   [Expand]View Technology
   [Expand]Data Editing
   [Expand]Filtering and Locating Rows
   [Expand]Focus and Selection Handling
   [Expand]Processing Rows
   [Collapse]Formatting Cell Values
     Data Grid Formatting Specifics
     Member Table: Formatting
   [Expand]Master-Detail Relationships
   [Expand]Asynchronous Image Load
   [Expand]Export and Printing
   [Expand]Appearance and Conditional Formatting
   [Expand]Batch Modifications
   [Expand]Hit Information
   [Expand]Popup Menus
   [Expand]Saving and Restoring Layouts
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]End-User Capabilities
    Included Components
  [Expand]Vertical 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]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Report Server
[Expand]eXpressApp Framework
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Member Table: Formatting

Member Description
A column's GridColumn.DisplayFormat property

This property allows you to specify the settings used to automatically format column values in display mode. 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 Values topic.
A View's ColumnView.CustomColumnDisplayText event This event lets you provide different formatting for different rows. The display text supplied via this event will be used when printing or exporting the grid.
A View's GridView.CustomDrawCell or CardView.CustomDrawCardFieldValue event These events let you provide different formatting for different rows. The display text supplied via this event will not be used when printing or exporting the grid.
An in-place editor's RepositoryItem.DisplayFormat property.

It is possible to assign an in-place editor to a grid column or individual cell and then use the editor's RepositoryItem.DisplayFormat property to specify the formatting settings that will be used in display mode. This approach is similar to using the GridColumn.DisplayFormat property. However, it is possible to supply different editors for different rows and therefore this allows you to provide different formatting for different cells.

See Formatting Values for information on adjusting the DisplayFormat property.

See Assigning Editors to Columns and Card Fields and Assigning Editors to Individual Cells for information on specifying in-place editors in GridControl.

Expanded See Also

How would you rate this topic?​​​​​​​