private ProductKitItemValueCollection GenerateProductKitItemValueCollection(Product product, OrderItem orderItem, ArrayList productKit, ArrayList productKitCount, ArrayList productKitGroupID)
    {
        ProductKitItemValueCollection kitCollection = new ProductKitItemValueCollection();

        for (int i = 0; i < productKit.Count; i++)
        {
            Product        subProduct = (Product)productKit[i];
            ProductKitItem item       = new ProductKitItem();
            item.IsUserDefinedQuantity = true;
            item.ProductKitGroupID     = (string)productKitGroupID[i];
            item.ProductID             = subProduct.ProductID;
            ProductKitItemValue value = new ProductKitItemValue(item, ProductKitGroup.ProductKitGroupType.Unknown, "",
                                                                (int)productKitCount[i]);
            kitCollection.Add(value);
        }
        return(kitCollection);
    }
    public ProductKitItemValueCollection GetSelectedProductKitItems()
    {
        // loop for each option in datalist
        // get selected option for each option
        //string[] result = new string[uxOptionDataList.Items.Count];
        ProductKitItemValueCollection itemSelected = new ProductKitItemValueCollection();

        for (int i = 0; i < uxOptionDataList.Items.Count; i++)
        {
            Components_ProductKitItemDetails details =
                (Components_ProductKitItemDetails)uxOptionDataList.Items[i].FindControl("uxProductKitItemDetails");

            foreach (ProductKitItemValue item in details.GetSelectedItem())
            {
                itemSelected.Add(item);
            }
        }

        return(itemSelected);
    }