I have a class:
class MyObject
{
float f;
int i;
}
When a collection of MyObject instances are bound to a grid on UI, we have a default display of the instances (one object for one row), which probably calls float.ToString() and int.ToString(). My question is that, how to customize this default behavior? How to add in some format control to the primitive types here when they are displayed?
Thanks.