Dynamicweb 8 Documentation
ProductRelatedGroupCollection Class
Members  Example 

Represents a collection of ProductRelatedGroup objects.
Object Model
ProductRelatedGroupCollection ClassProductRelatedGroup Class
Syntax
Example
class MyPage : System.Web.UI.Page
{
    private string RelatedGrpList()
    {
        StringBuilder sb = new StringBuilder();
        ProductRelatedGroupCollection rgCol = ProductRelatedGroup.getRelatedGroups();
        int fldCnt = rgCol.Count;

        sb.Append("<select size=" + fldCnt + 1 + " name=ElemSort>");
        foreach (ProductRelatedGroup rg in rgCol)
        {
            sb.Append("<option value=\"" + rg.GroupID + "\">" + rg.Name + "</option>");
        }
        sb.Append("</select>");
        return sb.ToString();
    }
}
Inheritance Hierarchy

System.Object
   System.Collections.ObjectModel.Collection<T>
      Dynamicweb.eCommerce.Products.ProductRelatedGroupCollection

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ProductRelatedGroupCollection Members
Dynamicweb.eCommerce.Products Namespace

Send Feedback