I am still unable to do it...Here is my code <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="init()" xmlns:classes="classes.*"> <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; [Bindable] private var arr:ArrayCollection; private function init():void{ arr=new ArrayCollection([ {name:"name1",age:"21"}, {name:"name2",age:"22"}, {name:"name3",age:"23"}, {name:"name4",age:"24"} ]) } private function onComplete():void{ dg1.clearSep(); } ]]> </mx:Script> <classes:CustomDG id="dg1" dataProvider="{arr}" creationComplete="onComplete()" verticalGridLines="false" /> </mx:Application>
and here is my custom extended datagrid package classes { import mx.controls.DataGrid; import mx.controls.Alert; public class CustomDG extends DataGrid { public function CustomDG() { super(); } public function clearSep():void { clearSeparators(); } } } Could you tell me where I am going wrong? -Aasim --- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> wrote: > > On Tuesday 19 Feb 2008, Aasim wrote: > > I need to create a Datagrid without the separators in the datagrid > > headers. I have seen that there is a protected function > > clearSeparators() Can this be used? > > If it's protected, you can only call it from a subclass. > So create a sub class with a public method doClearSperators() and have that > call clearSperatators(). > > -- > Tom Chiverton > Helping to competently consolidate intuitive CEOs > on: http://thefalken.livejournal.com > > **************************************************** > > This email is sent for and on behalf of Halliwells LLP. > > Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. > > CONFIDENTIALITY > > This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. > > For more information about Halliwells LLP visit www.halliwells.com. >