I think your problem is not the Click function. You are doing a postback that tries to send the selected row to the server side while this row has no keys.
You should check your ASPX file to see the KeyFieldName and check that the datasource identification field is what you have declared.
<dx:ASPxGridView runat="server" Id="t_tickets" KeyFieldName="Id">
...
...
...
</dx:ASPxGridView>
I think that you will find that it is erroneous in your case. This means that what you have specified as KeyFieldName is not a Property member of the datasource object that corresponds to the row of your Grid. (Or it is not part of the select statement in the datasource)