1 Reply Latest reply on Nov 20, 2006 11:03 AM by peterent

    Horizontal Scrollbar on DataGrid

    wy790289
      Hi,

      I would like to create a DataGrid with many columns that the width of DataGrid will larger than the screen. So I need a horizontal scrollbar on DataGrid to let user move the grid horizontally. However I could not found which proprity is used to enable the horizontal scrollbar and the dafault of datagrid do not have it. Could anyone can give me some advises?

      Thanks a lot!
      Wilson
        • 1. Re: Horizontal Scrollbar on DataGrid
          peterent Level 2
          By default the DataGrid will size all of the columns so they fit into the horizontal space allocated to the DataGrid. If you want to do what you suggest, then:

          <mx:DataGrid horizontalScrollPolicy="on" ... >

          will turn on the scrollbar and tell the DataGrid to relax its size constraints.