Hi,
If I understand you correctly, you use Grid webpart to view your products. In the table displaying your products is a column used as a link that will redirect the user to a detail page of the selected product?
In this case you could add following code into Selected item transformation property of your grid webpart:
<uc1:CartItemSelector id="cartItemSelector" runat="server" SKUID='<%# ValidationHelper.GetInteger(Eval("SKUID"), 0) %>
' SKUEnabled='
<%# ValidationHelper.GetBoolean(Eval("SKUEnabled"), false) %> ' AddToCartImageButton="addtocart.gif" AddToCartLinkText="Add to shopping cart" />
Could you please provide more details about your issue in case the above transformation code will not help you?
Best regards,
Ivana Tomanickova