When i give lockedColumnCount, =2 the firrst and second columns are appearing frozen but when i scrolll the data in the first column remains frozen but the data in the second column is moving even thought the column remains frozen. Can you please help me on this.
Thanks Prasanth On Sep 26, 10:47 am, Prasanth <[EMAIL PROTECTED]> wrote: > Thanks for the info > > On Sep 25, 8:39 pm, sindhu <[EMAIL PROTECTED]> wrote: > > > > > If in case i need to lock some three or four columns in the same > > datagrid? wats the solution? > > And also,if i do locking,is it possible to prevent the > > scrolling(vertical) of the data inside the column .i mean .Scrolling > > by rotation wheel of mouse not scroll bars > > > On Sep 25, 7:34 pm, imtiyaz <[EMAIL PROTECTED]> wrote: > > > > Hi Prashath, > > > > you can do this by setting lockedColumnCount property of dataGrid if > > > you set it to one the first column will be "freezed". > > > > here is the example > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > > Main.mxml > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > > <?xml version="1.0" encoding="utf-8"?> > > > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > > > layout="absolute"> > > > <mx:Script> > > > <![CDATA[ > > > private var dp:Array = [ > > > { symbol: "ADBE", name: "Adobe Systems Inc.", price: 49.95, age: > > > 10 }, > > > { symbol: "BETA", name: "Beta Inc.", price: 19.95, age:10 }, > > > { symbol: "CSCO", name: "Cisco Inc.", price: 45.95, age:10 }, > > > { symbol: "DELL", name: "Dell Inc.", price: 34.95, age:10 }, > > > { symbol: "EXPD", name: "Expedia Inc.", price: 39.95, age:10 }, > > > { symbol: "FOXS", name: "Fox Sports Inc.", price: 9.95, age:10 }, > > > { symbol: "GOOG", name: "Google Inc.", price: 139.95, age:10 }, > > > { symbol: "ICON", name: "Icon Inc.", price: 32.95, age:10 }, > > > { symbol: "JUNI", name: "Juniper Inc.", price: 23.95 , age:10}, > > > { symbol: "KLA", name: "KLA Tencor Inc.", price: 37.95, age:10 }, > > > { symbol: "MACR", name: "Macromedia Inc.", price: 39.95, age:10 }, > > > { symbol: "MSFT", name: "Microsoft Corp.", price: 25.95, age:10 }, > > > { symbol: "IBM", name: "IBM Corp.", price: 42.55, age:10 } > > > ]; > > > > ]]> > > > </mx:Script> > > > > <mx:DataGrid id="dg" initialize="dg.dataProvider = dp" > > > paddingTop="0" horizontalScrollPolicy="auto" > > > paddingBottom="0" verticalAlign="middle" width="302" > > > lockedColumnCount="2" > > > height="472"> > > > <mx:columns> > > > <mx:DataGridColumn headerText="Name" dataField="name" /> > > > <mx:DataGridColumn headerText="Symbol" dataField="symbol" /> > > > <mx:DataGridColumn > > > dataField="price" > > > /> > > > <mx:DataGridColumn dataField="age" /> > > > </mx:columns> > > > </mx:DataGrid> > > > </mx:Application> > > > > ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ > > > > Regards, > > > Imtiyaz Basha M S- Hide quoted text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

