h1

Setting width of DataGridColumn as Percentage

April 16, 2010

Have you ever tried setting the width of a DataGridColumn in percentage value? Something like width=”20%”??? I did that today and was shocked to see a compile time error. After doing some research, I found this solution:

<mx:DataGridColumn width=”0.2″/>

When you set the width in decimals, it automatically converts it as percentage!!!

Now thats BAD!!!

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: