setNumberFormat() not working

This is the following code I’m writing so that I can display the data(number) in column c7 in
0,000,000 format (comma seperated number with no decimal) .
But this formatting is not working .
The data is loaded from xml url. What should I do?

mygrid.setColumnIds(“c1,c2,c3,c4,c5,c6,c7”);
mygrid.setColTypes(“ro,ro,ro,ro,ro,ro,ro”);
var colIndex7=mygrid2.getColIndexById(“c7”);
mygrid.setNumberFormat(“0,000,000”,colIndex7,".",",");

mygrid.init();

In this case you need to define attributes this way:

mygrid.setNumberFormat("0,000",0,".",",");