I have a Price column that displays integers in plain format like 1000000. I would like to know how can I format it with commas without affecting its value when retrieving w
Take a look at Table Format Renderers.
It provides a simple example of how to create a custom renderer by overriding the setValue(...) method of the renderer.
setValue(...)
Or you can use one of the provided classes which allows you to easily create reusable renderers with different formats.