datagrid how to get multi-line working

How do I get the description column to be multiline/wrap instead of cutting off the text. Here is code sofar:

links.dg.vScrollPolicy = "auto";

var linktext_dgc:DataGridColumn = new DataGridColumn("linktext");
linktext_dgc.width = 200; // width in pixels.
linktext_dgc.headerText = "Link";
links.dg.addColumn(linktext_dgc);

var description_dgc:DataGridColumn = new DataGridColumn("description");
description_dgc.width = 500; // width in pixels.
description_dgc.headerText = "Description";
links.dg.addColumn(description_dgc);

var dgLsr:Object = new Object();
dgLsr.change = function(evnt:Object) {
      if(links.dg.selectedItem['url'] != undefined) {
            getURL(links.dg.selectedItem['url'], "_blank", "POST");
      }
}
links.dg.addEventListener("change", dgLsr);

links.dg.dataProvider = _root.linkArray;
LVL 6
jstretchAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
RobOwner (Aidellio)Commented:
Have you tried changing the rowHeight parameter of the component?
0
 
jstretchAuthor Commented:
I had to attach a CellRenderer to that column. I didn't know about that class.
0
All Courses

From novice to tech pro — start learning today.