You should use a cellRenderer.
The Flex Samples come with examples of cellRenderers.
Or you can refer to the following URL
http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flex_Documentation&file=00000531.htm#wp146885


jagabcdeff wrote:
Hi All,

Is there any possibility to put button inside <mx:DataGridColumn>

I tried with following code

<mx:DataGrid id="">
  mx:columns>
      <mx:Array>
        <mx:DataGridColumn headerText="Name" columnName="Name" />
        <mx:DataGridColumn headerText="Address"
columnName="Address" />
       <mx:DataGridColumn columnName="active" headerText="Active"
textAlign="center" >
             <mx:Button label="View" />
      </mx:DataGridColumn>
           
   </mx:Array>
     
    </mx:columns>
   </mx:DataGrid>

but i got error like
Don't know how to parse
element "http://www.macromedia.com/2003/mxml:Button"

Let me know Whether above  code is correct  or not ? if not
how to do this..?
any help is appreciate,

thanks,
Jagadeesh











--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to