Просмотр полной версии : Как сделать перенос строк в ячейках Datagrid
olevacho
01.12.2009, 19:51
Как сделать перенос строк в ячейках Datagrid?
...........
var col = myDataGrid.getColumnAt(0);
col.cellRenderer = MultiLineCell;
...........
класс MultiLineCell
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();
}
}
}
Работает на vBulletin ® версия 3.7.3. Copyright ©2000-2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Copyright © 1999-2008 Flasher.ru. All rights reserved.