0 Replies Latest reply on Feb 13, 2009 7:13 AM by tbroas

    Flex datagrid automatic width?


      I'm currently attempting to use the datagrid component to display some information. This information will be pulled in externally, and I will not know the length of the content that will be in each row. Is there a way that I can get the width of the datagrid to automatically be the width of the row that has the most content? For example, if my data grid displays:

      this is row one
      this is row two
      this is row three... is has the most content....

      I would like the datagrid to be the width of row three (without scrollbars). I can't specifiy a width because I don't know how long the content will be, and specifying a width of 100% makes the datagrid wider than it needs to be. Any ideas?

      Thanks in advance for any advice.