Basically, lockedRowCount does not do anything if the AdvancedDataGrid is displaying hierachical data.
If you have a look at the AdvancedDataGrid code you will see this comment before the get lockedRowCount() function: // if dataProvider is hierarchical, return 0 // because lockedRowCount has no effect in a hierarchical display --- In [email protected], "grg_blls" <grg_b...@...> wrote: > > Hi, > > thanks for the working example. Your example displays a flat Data type, > though I was trying to have LockedRowCount property work with Hierarchical > Data type displayed, without success. > > Is it that AdvancedDataGrid doesn't support this property if displaying > hierachical data (my prime reason for using this control in place of the > normal DataGrid). > Is this really so? > (I couldn't find any documented limitations as to the application of this > particular property) > Please clarify. > > Thanks again, > George > > > > --- In [email protected], "valdhor" <valdhorlists@> wrote: > > > > Sure... > > > > <?xml version="1.0" encoding="utf-8"?> > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> > > <mx:Script> > > <![CDATA[ > > [Bindable] private var dp:Array = [ > > { symbol: "ADBE", name: "Adobe Systems Inc.", price: 49.95 > > }, > > { symbol: "BETA", name: "Beta Inc.", price: 19.95 }, > > { symbol: "CSCO", name: "Cisco Inc.", price: 45.95 }, > > { symbol: "DELL", name: "Dell Inc.", price: 34.95 }, > > { symbol: "EXPD", name: "Expedia Inc.", price: 39.95 }, > > { symbol: "FOXS", name: "Fox Sports Inc.", price: 9.95 }, > > { symbol: "GOOG", name: "Google Inc.", price: 139.95 }, > > { symbol: "ICON", name: "Icon Inc.", price: 32.95 }, > > { symbol: "JUNI", name: "Juniper Inc.", price: 23.95 }, > > { symbol: "KLA", name: "KLA Tencor Inc.", price: 37.95 }, > > { symbol: "MACR", name: "Macromedia Inc.", price: 39.95 }, > > { symbol: "MSFT", name: "Microsoft Corp.", price: 25.95 }, > > { symbol: "IBM", name: "IBM Corp.", price: 42.55 } > > ]; > > ]]> > > </mx:Script> > > <mx:AdvancedDataGrid dataProvider="{dp}" rowCount="9" > > lockedRowCount="2"> > > <mx:columns> > > <mx:AdvancedDataGridColumn headerText="Name" > > dataField="name" width="200"/> > > <mx:AdvancedDataGridColumn headerText="Symbol" > > dataField="symbol" width="100"/> > > <mx:AdvancedDataGridColumn headerText="Price" > > dataField="price" width="100"/> > > </mx:columns> > > </mx:AdvancedDataGrid> > > </mx:Application> > > > > > > --- In [email protected], "grg_blls" <grg_blls@> wrote: > > > > > > Hi all, > > > > > > Is there any working demo example in Flex 3, of a AdvancedDataGrid > > with LockedRowCount property set and capable of demonstrating its > > functionality? > > > > > > Any help will be greatly appreciated. > > > Thanks in advance > > > > > > George > > > > > >

