Just set

dataGridName.getColumnAt(2).width = vairableName;

on creation complete of the dataGrid

where 2 should be replaced by the index of the column that you wish to set width.

-----
Sree


leorajpoot wrote:
hi all
I want to set the width of a column of a datagrid,value of the width is
stored in a variable. In DataGridColumn tag if i set
width="variableName", then a error occurs which says can't parse
variableName. If i set width without quotes eg. width=variableName then
a error occurs which says "Open quote is expected for attribute "width""

please help me out to solve this issue.












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to