Cell Value Formatting
Conditional Formatting
Visually differentiating specific records or cells is a common approach utilized in numerous applications to improve the end-user experience and make information more understandable. With the XtraGrid, you have at your disposal a straightforward and highly flexible mechanism to control conditional cell and row formatting. 
Embedded Cell Editors
-
Twenty editors from the XtraEditors Library (included with the XtraGrid Suite) can be used within any view to display and edit data. You can also create custom editors by deriving from those that ship with the XtraGrid Suite.
-
Editors are optimized to be used within container controls. For more information on the synergies between the XtraGrid and XtraEditors Library, please visit the following web page: Design Strengths
- Editors can be assigned to entire columns or card fields. Grid views also allow you to assign editors for individual cells rather than entire columns, which in turn allows you to create rotated grid layouts.
-
The XtraEditors Library offers unmatched data input capabilities including the best masked input support on the market and ultimate usability options - full keyboard support, auto-completion where possible, value scrolling where possible, etc. For more information on these features, please visit the following web pages: Data Input Capabilities, Usability Options

Display Text Formatting
Display value formatting can make any grid's data more readable and thus allow end-users to be more productive. The XtraGrid includes comprehensive support for display formatting by allowing you to format any data displayed within it:
- Cell values
- Group row values
- Summary values (When formatting summary values you can surround the formatted value with text to help indicate the aggregate function being used.)
Regardless of the grid value that you need to format, we provide you with maximum formatting flexibility. You can use any of the following options when formatting data.
- Standard numeric and date-time format strings
The easiest formatting approach and one that addresses most formatting requirements.
- Custom numeric and date-time format strings
This approach gives you greater control and allows you to construct the formatted value's pattern from the available primitives - digit placeholders, literal characters, date and time value segments, etc.
- Manual formatting
You can write code to transform values to their textual representation manually. This formatting approach has unlimited application possibilities - from providing human-readable text representation for custom objects to converting decimal numbers into binaries...and so much more.

Custom Painting
The XtraGrid allows you to manually paint all its individual elements. With custom painting, the grid can be turned into anything - even a tetris game. And the XtraGrid ships with a demo application showing how this can be done. 
|