# Help: Dynamic DataGrid dataField

**URL:** <https://forum.kirupa.com/t/help-dynamic-datagrid-datafield/266960>\
**Category:** flash\
**Created:** [July 26, 2008, 9:31am UTC](https://forum.kirupa.com/t/help-dynamic-datagrid-datafield/266960 "2008-07-26T09:31:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kenwio](https://avatars.discourse-cdn.com/v4/letter/k/eada6e/32.png) [@Kenwio](https://forum.kirupa.com/u/Kenwio)\
**Post date:** [July 26, 2008, 9:31am UTC](https://forum.kirupa.com/t/help-dynamic-datagrid-datafield/266960/1 "2008-07-26T09:31:43Z")

</div>

Hi!

I want to add a XML-object’s text() a DataGridColumn so that it displays the data from the XML tree below

This is what I got right now:

```auto

//dataGrid is a DataGrid decared in MXML
//dgc is a new DataGridColumn declared earlier in this script
var xmlSet:XML = new XML();    
xmlSet = 
<xmlSet>
 <cell>
  <dell>Hello</dell>
  <dell>Mike</dell>
 </cell>
</xmlSet>;

dataGrid.dataProvider = xmlSet.cell.dell; //Is it right here?
dgc.dataField = ; //What do I put here? Tried many things, but none have worked

```

Please help!  
//Kenwio
