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:

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

Application – Source

continue reading.....