hello,

you can use labelfunction property of data grid column to merge firstname
and lastname.

For example,

private function fullNameLabelFunction(item:Object):void{
         return item.firstName + " " + item.lastName ;

}

<mx:DataGrid id="datagrid1" dataProvider="//data provider goes here//" >

<mx:DataGridColumn headerText="Full Name" labelFunction="
fullNameLabelFunction" />

</mx:DataGrid>

Hope above example may answer your question.

Regards,
Mahek

On Tue, Mar 15, 2011 at 10:25 AM, nithyaprakash
<[email protected]>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 [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.
>
>

-- 
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.

Reply via email to