Recordset problem..... help needed

Hi all,

I am using amfphp for sending a recordset to flash and showing the recordset in a data grid.

The code in flash is :

var test:RecordSet = RecordSet(re.result)
_root.md_dg.dataProvider = test

Where

_root.md_dg

is instance name of my datagrid

And its working fine… the problem is that in the datagrid header its showing columnNames same as in the databse e.g. id, name, email

I want the columnNames to be Id, Name, Email.

Can anyone help me out.

Thanks