PDA

View Full Version : [AS2] Multiline Data in DataGrid Component ???


ashishkummar2
12-16-2008, 01:01 PM
Hi,

Please let me know how to show Multiline data in DataGrid Component ... ?


Here solution is available but it is in Flex... :(

http://blog.flexexamples.com/2007/07/23/creating-multi-line-data-grid-rows-with-variable-row-heights/


How to do same in Flash .. ?

ashishkummar2
12-17-2008, 12:34 PM
http://demo.tufat.com/datagrid/flash7/index.html

caseyctg
12-29-2008, 10:22 PM
package {

import fl.controls.listClasses.CellRenderer;

public class MultiLineCell extends CellRenderer
{

public function MultiLineCell()
{
textField.wordWrap = true;
textField.autoSize = "left";
}
override protected function drawLayout():void {
textField.width = this.width;
super.drawLayout();
}
}
}