# \[Flash8\] DataGrid won't appear with this code

**URL:** <https://forum.kirupa.com/t/flash8-datagrid-wont-appear-with-this-code/216113>\
**Category:** flash\
**Created:** [February 13, 2007, 9:21pm UTC](https://forum.kirupa.com/t/flash8-datagrid-wont-appear-with-this-code/216113 "2007-02-13T21:21:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dalewb](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dalewb/32/3029_2.png) [@dalewb](https://forum.kirupa.com/u/dalewb)\
**Post date:** [February 13, 2007, 9:21pm UTC](https://forum.kirupa.com/t/flash8-datagrid-wont-appear-with-this-code/216113/1 "2007-02-13T21:21:04Z")

</div>

Hi people 🙂

I am trying to create a DataGrid component with AS and it’s not showing up. Can anyone point out what I am doing wrong?

```auto

import mx.controls.*;

createClassObject(DataGrid, "dgTalent", 0, {_x: 0, _y: 0});
    dgTalent.columnNames = ["Character", "Allowed"];    
    dgTalent.addItem({Character: "Affliction", Allowed: "Affliction"});

```

It’s still really basic right now, but I have to keep it that way until I can at least get the darn thing to show up :look:
