# DataGrid and iconField

**URL:** <https://forum.kirupa.com/t/datagrid-and-iconfield/192410>\
**Category:** flash\
**Created:** [June 28, 2006, 12:48pm UTC](https://forum.kirupa.com/t/datagrid-and-iconfield/192410 "2006-06-28T12:48:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![n\_porkodi](https://avatars.discourse-cdn.com/v4/letter/n/3be4f8/32.png) [@n\_porkodi](https://forum.kirupa.com/u/n_porkodi)\
**Post date:** [June 28, 2006, 12:48pm UTC](https://forum.kirupa.com/t/datagrid-and-iconfield/192410/1 "2006-06-28T12:48:06Z")

</div>

Hi All,  
Can we use the iconField with DataGrid in same way with List component?

I’m using the following code: (having DataGrid component in the stage named “dg” and MovieClips with linkage identifiers ,Alloc,NotAlloc and RelBtn.

\_level0.dg.addItem({label:“1”,data:“flash”,icon:“Alloc”});  
\_level0.dg.addItem({label:“2”,data:“flash”,icon:“NotAlloc”});  
\_level0.dg.addItem({label:“3”,data:“flash”,icon:“RelBtn”});  
\_level0.dg.iconField = “icon”;

But the output is like this:

label data icon

1 flash Alloc  
2 flash NotAlloc  
3 flash RelBtn

What I need is to display the real MovieClips instead of the texts.

Anyone please help me in this issue.

Regards,  
Porkodi.N.
