Skip to main content
Participating Frequently
August 29, 2013
Question

how to change width/height of a single(particular) cell of datagrid in as3?

  • August 29, 2013
  • 1 reply
  • 770 views

Hi,

datagrid.rowHeight/datagrid.columnWidth property allows you to change height/width of all the cells. But how can i change size of only particular/selected cells?

There is also datagrid.columns[1].width=500; property.... but is there anything for particulat cell selection?

This topic has been closed for replies.

1 reply

Inspiring
August 29, 2013

Its not advised to start multiple threads about so closely related subjects as fast as you do it .

It would be better to first start with the documentation, becaus all the answers you are serarching for  are in there:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/controls/DataGrid.html

"But how can i change size of only particular/selected cells"

This question makes no sense to me. How can you change the size of a cell  in a datgrid without changing the sizes of its neighbors?

maulshreAuthor
Participating Frequently
August 30, 2013

apologies for the inconvenience caused.....there was no intention to start multiple threads on the same question....

i guess i've not been able to articulate my question properly....

all i wanted to know what how to change a specific rowHeight in datagrid?

OR

is there an equivalent of datagrid.columns[1].width=500; property for changing individual rowheights?

I'm not sure if GridItemRenderer would come to the rescue or not? if yes, then how...

P.S: i had gone through the documentation provided too but couldn't find the solution of how to change only few rowHeights and not all.

If I'm not able to find a way around for this, i'ld have to switch to making a grid of textInput boxes to change their individual rowHeights but that would be a too cubersome process...

Thanks for your effort & guidance ....