title: How to add a click event to a item renderer button in a datagrid to delete the current row?
body: <p>Hi i have a data grid with customer names in the i used an inline <code>ItemRenderer</code> to add a delete button now i want to add a click event to this button how can i do this? I added an <code>addEventListner</code> method in <code>initApp()</code> listening for a click it worked, But i want to use the click event from the button please help. </p>
  
  <pre><code>private function delItem(event:MouseEvent):void
          {
              if(event.target.label == "Delete User")
              {
                  myArrayCollection.removeItemAt(myGrid.selectedIndex);
              }
          }
  private function initApp():void
          {
              delButton.addEventListener(MouseEvent.CLICK,delItem);
          }
  </code></pre>