Hi. I'm trying to mask an UltraGridColumn in order to display just the integer part of a decimal number, so that 12.35 would be displayed just like 12; 455.002 would be displayed as 455 and so on.
Is there any mask format (or another property or function) that could help me to do that?
Thanks.
Hi Matt. Thanks for your reply. I will be taking a look at this now and will let you know how it goes later. Thanks a lot.
Do you just want to display the integer portion without editing, or do you need editing capabilites too? I don't think that there's really any way to do this with just a mask, though if you you want to display it as an integer you could set the Format of the column to "F0" (though I think that this may perform rounding). Your other option is to use a DataFilter to convert the values, though it would be up to you to determine how you would know to round-trip the decimal portion of the data so that it's not lost; if you're only displaying the data and not editing it, you would only have to worry about OwnerToEditor direciton.
For an example of using a DataFilter, take a look at the following link:
http://devcenter.infragistics.com/Support/KnowledgeBaseArticle.aspx?ArticleID=5014
-Matt