![]() The first new parameter (true) enables formatting. There are several extra parameters at work here. ("Text", products, "UnitCost", true, DataSourceUpdateMode.OnValidation, 0, "C") If the conversion you want to perform involves converting a number or date into an appropriate string representation, you can use an overloaded version of the ControlBindingsCollection.Add() that accepts a format string. Luckily, it's quite easy to change this detail. For example, the UnitCost is displayed in the form 1.9900 instead of the more appropriate currency string $1.99. ![]() One limitation in your current example is that there is no way to handle data that need to be formatted before they can be displayed.
0 Comments
Leave a Reply. |