Button Component won't use my code

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