using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.Services.Client;
using TelerikStore.EbayService;
using Telerik.Web.UI;
using TelerikStore.MasterPages;

namespace TelerikStore.Views
{
    public partial class ProductList_Grid : System.Web.UI.UserControl
    {
        public String CategoryID { get; set; }

        protected void ProductGrid_ItemCreated(object sender, GridItemEventArgs e)
        {
            if (e.Item is GridDataItem)
            {
                GridDataItem item = (GridDataItem)e.Item;
                LinkButton buyButton = (LinkButton)item["BuyColumn"].Controls[0];
                buyButton.CommandArgument = e.Item.ItemIndex.ToString();
            }
        }
    }
}