ComponentOne True DBGrid for WinForms
Data Presentation Techniques / Text Formatting
In This Topic
    Text Formatting
    In This Topic

    In many cases, the raw numeric data that True DBGrid for WinForms receives from its data source is not suitable for end-user display. For example, date fields may need to be converted to a specific international format; currency fields may contain too many insignificant digits after the decimal point. Therefore, True DBGrid for WinForms provides a method with which you can alter the format of numerical fields, the NumberFormat property.

    In addition, for situations where universal formatting of the database information is inadequate, True DBGrid for WinForms provides an event, FormatText, that enables your application to override the default formatting on a per-column basis. By writing a simple handler for this event, you can customize the display of your column data in a myriad of ways.

    See Also