Dynamicweb 8 Documentation
RelatedGroups Property
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.
Syntax
'Declaration
 
Public Overloads Property RelatedGroups As ProductRelatedGroupCollection
public ProductRelatedGroupCollection RelatedGroups {get; set;}
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
Overload List

Send Feedback