How use wxpropertygrid events?

Hi i want pass the bool from the propertygrid for show or toggle some menu or button

how do that?