Dynamicweb 8 Documentation
RelatedGroups Property (Product)
Example 

Gets or sets the collection of related groups. The products can be placed in a different product group and then they will appear in more than one product category.
Overload List
OverloadDescription
RelatedGroupsGets or sets the collection of related groups. The products can be placed in a different product group and then they will appear in more than one product category.  
RelatedGroups(Boolean)Gets or sets the collection of related groups excluding not used items. The products can be placed in a different product group and then they will appear in more than one product category.  
Example
class MyPage : System.Web.UI.Page
{
   private Product prod;
   public void ShowRelatedGroupList()
   {
       if (prod.RelatedGroups.Count > 0)
       {
           foreach (ProductRelatedGroup prg in prod.RelatedGroups)
           {
               //TODO: insert your code here
           }
       }
   }
}
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

Product Class
Product Members

Send Feedback