Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [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
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Collapse]Tree List
   [Expand]Product Information
   [Expand]Feature Center
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Expand]Examples
   [Expand]End User Capabilities
   [Collapse]Member Tables
     Member Table: Appearances
     Member Table: Context Menus
     Member Table: Custom Draw
     Member Table: Export and Import Data
     Member Table: Filtering
     Member Table: Focus and Navigation
     Member Table: Formatting
     Member Table: In-place editors
     Member Table: Node Selection
     Member Table: Nodes
     Member Table: Obtain and Set Cell Values
     Member Table: Printing
     Member Table: Sorting
     Member Table: Summaries
     Member Table: Unbound Mode
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Spell Checker
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [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]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

Member Table: Formatting

Member Description
A column's TreeListColumn.Format property

This property allows you to specify the settings used to automatically format a column's 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 Approaches topic.
The TreeList.GetNodeDisplayValue event This event lets you provide different formatting for different cells. The display text supplied via this event will be used when printing or exporting the control.
The TreeList.CustomDrawNodeCell event This event lets you provide different formatting for different rows. The display text supplied via this event will not be used when printing or exporting the control.
An in-place editor's RepositoryItem.DisplayFormat property.

It's possible to assign an in-place editor to a 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 TreeListColumn.Format property. However, it's possible to supply different editors for different rows and therefore this allows you to provide different formatting for different cells.

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