# Datagrid/dataprovider changing column names (hash)

**URL:** <https://forum.kirupa.com/t/datagrid-dataprovider-changing-column-names-hash/236464>\
**Category:** Uncategorized\
**Created:** [August 21, 2007, 6:35am UTC](https://forum.kirupa.com/t/datagrid-dataprovider-changing-column-names-hash/236464 "2007-08-21T06:35:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dmerino](https://avatars.discourse-cdn.com/v4/letter/d/e8c25b/32.png) [@dmerino](https://forum.kirupa.com/u/dmerino)\
**Post date:** [August 21, 2007, 6:35am UTC](https://forum.kirupa.com/t/datagrid-dataprovider-changing-column-names-hash/236464/1 "2007-08-21T06:35:22Z")

</div>

Ok I finally figured out all of my remoting issues with AMFPHP and AS3

I now have an array of column names: [id,group\_fk,date\_created,name,password]

And Arrays a bunch of arrays setup in the same order: [id, group\_fk ,date\_created, name, password]

I want to be able to go through a dataProvider (or dataGrid) and just say myDg[0].id or myDg[0][id] rather than myDg[0][0] to get the id.

Any advice on what is the most efficient way to do this?

I tried just setting the columns of a datagrid to [id,group\_fk,date\_created,name,password] and then adding the dataprovider (which is just the bunch of arrays that match up in order).

Just looking for the best way to do this :pir:
