Thank you Dan,
I couldn't make it work
The only combination that works for me is:
ResourceHeaderClickHandling="JavaScript"
ResourceHeaderClickJavaScript="ChangeRoom(2);"
I just need to replace the (2) for a anything I could identify the row, to calculate the roomid