Buttons added, but not working

Can't find the error - missing value in the following code-block:
//Hvis produktet er fundet
if (Product.Id ==
(int)CartGw.DataKeys[Convert.ToInt32(e.CommandArgument)].Value)