I managed it using the ClientSideEvent "EndCallback" on the gridview only, calling my script from there.
<ClientSideEvents
EndCallback="MyDropkickScript" RowClick="OnRowClick" DetailRowExpanding="OnDetailRowExpanding" DetailRowCollapsing="OnDetailRowCollapsing"
/>
The problems was by using too much ClientSideEvents in both GridView and DetailView.