Hi,

I have a DataGrid and am showing the full text of a DataGridColumn in 
a FormItem below it when a row is selected.  My problem is the text 
in the FormItem isn't wrapping (which I want).  

Any ideas?

Thanks,
Paul

<mx:Script>
  <![CDATA[
    private function selectedItemChanged():void{
      subject.text = datagrid.selectedItem.subject;
    }
  ]]>
</mx:Script>

<mx:DataGrid width="100%" id="datagrid" change="selectedItemChanged
()" ...>
  <mx:columns>
    <mx:DataGridColumn dataField="subject" headerText="Subject" 
width="200" />
  </mx:columns>
</mx:DataGrid>

<mx:Form width="100%">
  <mx:FormItem label="Subject" width="100%">
    <mx:Text text="" id="subject" width="100%" />
  </mx:FormItem>
</mx:Form>

Reply via email to