Using lockedColumnCount in a datagrid in Flex

The lockedColumnCount in the datagrid is a tricky little flag you have to remember to do a couple things especially if you are using it inside a container:

  1. horizontalScrollPolicy=’on’
  2. verticalScrollPolicy=’on’
  3. set the width to the parent components width (width=”{myParentContainer.width})
  4. set lockedColumnCount=”3″

Application Source

Leave a comment