1 Reply Latest reply on Jan 4, 2009 7:48 AM by ivan_sh.

    DataGrid: column width to content

      Hi all.

      I have some DataGrid, filled from array or from external source - it's not matter.

      Headers of columns can have different length, and I need to implement columns resizing depends of header length.
      I understand, that I must use some custom headerRenderer, but I am flex newbie and have not used renderers earlier, so my test was not sucessfull.

      I've configired my DataGrid as in the attached code..

      and how must I implement my renderer? should I override "set data function" or some other method?
      how can I get header lentgh in pixels?
      and then how can I set column width?

      Thanks and best regards.