Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Expand]WinForms Controls
[Collapse]ASP.NET Controls and MVC Extensions
 [Expand]Prerequisites
 [Expand]What's Installed
 [Expand]Common Concepts
 [Collapse]ASP.NET WebForms Controls
  [Expand]Reporting
  [Expand]Chart Control
  [Collapse]Grid View
   [Expand]Product Information
    Getting Started
   [Expand]Fundamentals
   [Collapse]Concepts
    [Expand]Binding to Data
    [Expand]Data Representation Basics
    [Expand]Focus and Navigation
    [Expand]Data Editing
    [Expand]Data Shaping and Manipulation
    [Collapse]Data Formatting
      Conditional Formatting
      Format Condition Types
      Formatting via Events
      Standard Formatting Mechanism
      Creating Conditional Formatting Rules
    [Expand]Master-Detail Relationship
     Appearance Customization
     Adaptivity
     Save and Restore Layout
    [Expand]Templates
     Export
     Toolbars
    [Expand]ASPxGridLookup
    ASPxGridView Designer
   [Expand]Visual Elements
   [Expand]Examples
   [Expand]Member Tables
   [Expand]ASPxGridView - Animated Images
  [Expand]Card View
  [Expand]Vertical Grid
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Expand]Image and Data Browsing
  [Expand]Docking and Popups
  [Expand]Site Navigation and Layout
  [Expand]File Management
  [Expand]Multi-Use Site Controls
  [Expand]Scheduler
  [Expand]HTML Editor
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Gauges
  [Expand]Data Editors
  [Expand]Spell Checker
  [Expand]Query Builder
 [Expand]ASP.NET MVC Extensions
 [Expand]Localization
 [Expand]Redistribution and Deployment
  Get More Help
 [Expand]API Reference
[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

Standard Formatting Mechanism

Display values can be formatted using the standard formatting mechanism described in MSDN. It allows you to format values using standard format patterns. For instance, a numeric value can be represented as a currency amount, a hexadecimal value, in scientific notation, etc. A date/time value can be represented in the standard Short Date. Long Date or Full Date/Time form.

Expanded Data Cells

To format cell values using this approach, use a column editor's EditPropertiesBase.DisplayFormatString property.

The image below shows the result:

Expanded Summary Values

Values displayed within summary cells can be formatted using a summary item's ASPxSummaryItemBase.DisplayFormat property.

The image below shows the result:

Expanded Group Rows

The ASPxGridViewSettings.GroupFormat property allows you specify the text pattern for group rows. The text pattern can include static text plus predefined placeholders.

By default, this property is set to "{0}: {1} {2}". The {0} character sequence is the placeholder for the grouping column's caption. The {1} sequence is the placeholder for the grouping column's value, which corresponds to the current group row. Finally, the {2} character sequence is the placeholder for the group row's summary text.

The image below shows the result:

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