views:

197

answers:

0

Hi guys,

I have a problem with the DataGrid component in Flash CS4.

I would like to display only on column out of 3 and make the only column displayed as large as the DaTaGrid object.

When I hide two column and give them a width approaching 0, the third one doesn't take the width it should.

IMAGE : http://img340.imageshack.us/img340/6206/picture14b.png

dgOutput.showHeaders = false;
dgOutput.editable = false;
dgOutput.rowHeight = 18.5;
dgOutput.rowCount = 10;
dgOutput.columns = ["name", "id", "type"];
dgOutput.getColumnAt(1).visible = false;
dgOutput.getColumnAt(2).visible = false;
dgOutput.width = 250;
dgOutput.getColumnAt(0).width = 250;
dgOutput.getColumnAt(1).width = 0;
dgOutput.getColumnAt(2).width = 0;
dgOutput.addEventListener(ListEvent.ITEM_DOUBLE_CLICK, removeIt);

Am I missing something here? It drives me crazy.

Thanks in advance for your time and patience.

Jk