# Button Component won't use my code

**URL:** <https://forum.kirupa.com/t/button-component-wont-use-my-code/85584>\
**Category:** Uncategorized\
**Created:** [April 5, 2005, 9:18pm UTC](https://forum.kirupa.com/t/button-component-wont-use-my-code/85584 "2005-04-05T21:18:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darthmahon](https://avatars.discourse-cdn.com/v4/letter/d/8491ac/32.png) [@darthmahon](https://forum.kirupa.com/u/darthmahon)\
**Post date:** [April 5, 2005, 9:18pm UTC](https://forum.kirupa.com/t/button-component-wont-use-my-code/85584/1 "2005-04-05T21:18:53Z")

</div>

Hi,

I have a datgrid set up, I have some buttons that I made myself into symbols that adds new entries into the datagrid - this works fine also.

But, I’ve since tried to replace my custom made buttons with those of the button component…

So I have the following code on it:

[AS]  
on (click) {

```
 UserGrid.addItem({name:"Name", quantity:"1", price:"10", totalPriceColumn:"10"});

```

}  
[/AS]

Only difference is on my customer button I am using “on (release)”. But I didn’t seem to get that option in the button component?

When I press the button, it does nothing?? My DataGrid is called UserGrid.

Cheers,  
Chris
