How to define attachEvent in XML

I’m stuck with the problem to define attachEvent in XML. On onAfterCMove, I would like to call a function that in turn set the column ids.

Below are my codes, help from Support really appreciate

XML

Response.Write("")
Response.Write("")
Response.Write("")onAfterCMove
Response.Write("")
----> do not know how to call a function and setColumnIds here
Response.Write("")
Response.Write("")

CODE FROM MAIN PROGRAM

mygrid.attachEvent(“onAfterCMove”, function(cInd,posInd){mygrid.setColumnIds(“c1,c2,c3”);});

You should use following format:

onAfterCMovedoOnAfterCMove

In .html file:

<script> function doOnAfterCMove(){ ... } </script>

Thanks, it works.