for each(var obj:Object in xml received from backend){ list.addItem({activeper:parseFloat(obj.activeper)});}
grid.dataprovider = above list ; private function theLabelFunction(item:Object,column:DataGridColumn):String{ var num:Number = parseFloat(item[column.dataField]); return num.toFixed(2);} Itemrender is used for comparing the column value with 10 and text color is changed depending upon the value...thats it..!! The itemrender is defined in the mx:tag. Does it helps?? -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Data-type-to-convert-and-store-a-srting-into-decimal-float-value-tp5202p5219.html Sent from the Apache Flex Users mailing list archive at Nabble.com.