Hi Crystal,
If you want to hide the button, on which you clicked, use this code:
precode
$(this).hide();
/code/pre
If you want to hide the whole grid component, inside which this button is, then this:
precode
$(this).parents("[name=gridName]").hide();
/code/pre
where 'gridName' - is the name of your grid component.