I haven't made anything in ASP .NET but I think this solution could work.
There is an uncomfortable way to fire events in JScript .NET. You must write your own class extending GridView and override the On....() method:
class MyGridView extends GridView {
protected override function OnRowCommand(e : GridViewCommandEventArgs) {
// your code for execution
}
}
then create a GridView using this class.