tell me if this is not what you have asked for....

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute">
 <mx:Script>
<![CDATA[
 import mx.controls.dataGridClasses.DataGridColumn;
import mx.collections.ArrayCollection;
 [Bindable]
private var nameAC:ArrayCollection = new ArrayCollection([
 {firstName:"Ramesh", lastName:"Kumar"},
 ]);
 private function labelFunctionHandler(item:Object,
column:DataGridColumn):String {
 return item.firstName + " " + item.lastName;
}
 ]]>
</mx:Script>
 <mx:DataGrid dataProvider="{nameAC}">
<mx:columns>
 <mx:DataGridColumn dataField="firstName" headerText="First Name"/>
<mx:DataGridColumn dataField="lastName" headerText="Last Name"/>
 <mx:DataGridColumn labelFunction="labelFunctionHandler" headerText="Full
Name"/>
</mx:columns>
 </mx:DataGrid>
</mx:Application>


On Tue, Mar 15, 2011 at 10:25, nithyaprakash <nithyaprakash...@gmail.com>wrote:

> Hi Guys,
>
> I have datagrid Columns FirstName, LastName and FullName.
>
> I need to bind FirstName and LastName column fields to give
> FullName ?? data provider gives only FirstName and LastName
>
> Help me in this!
>
> --
> You received this message because you are subscribed to the Google Groups
> "Flex India Community" group.
> To post to this group, send email to flex_india@googlegroups.com.
> To unsubscribe from this group, send email to
> flex_india+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/flex_india?hl=en.
>
>


-- 
Fear is an illusion, So, face it !
RM3sh

-- 
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to flex_india@googlegroups.com.
To unsubscribe from this group, send email to 
flex_india+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en.

Reply via email to