Hi Friends,How do I display a value of -77 as (77) and -77.78 as (77.78) in the UltraGrid cell?. When the user enters a negative value in the cell,he should be able to enter it, but when he removes focus from thecell, it should be displayed as a positive value wrapped with brackets.Also, this needs to be done particular cells. So it has to be at the celllevel.I tried various options but it is getting too difficult to figure this out.Kindly help,Sid.
Hi Sid,
The way the Format property of a column works is that the grid simply takes the Value of the cell and calls the ToString method and passes in the format. So the formatting is really done by the DotNet framework. As such, in order to find out more about the possible formats, you need to check out the Microsoft documentation on numeric formatting.
Here's a couple of links that should help you out.
Custom Numeric Format Strings
Standard Numeric Format Strings
Hi Mike,I will surely check that out.But then I need to bind that display format with the cell. Am I right ? If yes, then how do I bind the display format with the cell ??Regards,Sid.