Skip navigation
Currently Being Moderated

Scrollbar of Datagrid Flash as3

Nov 10, 2011 4:39 PM

Hello to all:


Somebody can tell me, How remove the scrollbar from the datagrid to display a list that it grows as large or small like the list size?

and how to appear the scrollbar in the stage?


thanks in advance.




  • Currently Being Moderated
    Nov 10, 2011 5:50 PM   in reply to Joselyn6

    You should look thru the help documents and review all of the DataGrid's properties.  You will find properties that help you determine the width and height values and others that allow you to set whteher or not the scrollbars appear.  For instance. the following could make the DataGrid adjust its size for the number of rows it holds...


    dataGrid.height = dataGrid.headerHeight+dataGrid.length*dataGrid.rowHeight;


    And the following will set the vertical scrollbar to not appear...


    dataGrid.verticalScrollPolicy = ScrollPolicy.OFF;

    Mark as:
  • Currently Being Moderated
    Nov 15, 2011 1:33 PM   in reply to Joselyn6

    You might need to import the ScrollPolicy class before you can use it...


    import fl.controls.ScrollPolicy;

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points