Macromedia Flex Macromedia Flex
Have you checked out the lockedColumnCount feature?
  Home

Oct 11, 2007 - Have you checked out the lockedColumnCount feature?
A nifty little property to make sure a set of columns are always in view...

A lot of people don't know about this cool feature of the DataGrid's. Using the lockedColumnCount you can make it so the first x columns always remain in view as the users scroll horizontally. E.g. setting it to 1 does this:

There's a similar property called lockRowCount which does the same thing, but on rows.

File Details
Created On Oct, 11, 2007 by Tariq Ahmed
Last Modified On Oct, 11, 2007 by Tariq Ahmed
Group: Tips and Articles
Flex Versions: 2.0
Category: Controls:Lists (eg DataGrid/Tile/Tree)
Type: Tip
Difficulty: Beginner
Keywords: