Member Table: Formatting

  • 2 minutes to read

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.