ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Text Formatting

In many cases, the raw numeric data that True DBGrid for .NET 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 .NET 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 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.


Numeric Field Formatting

Input Validation with Built-In Formatting

Formatting with an Input Mask

Formatting with a Custom Event Handler


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.