Dynamicweb 8 Documentation
RelatedGroups(Boolean) Property
Example 

Is it frontend
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.
Syntax
'Declaration
 
Public Overloads Property RelatedGroups( _ 
   ByVal isfrontend As Boolean _ 
) As ProductRelatedGroupCollection
public ProductRelatedGroupCollection RelatedGroups( 
   bool isfrontend 
) {get; set;}

Parameters

isfrontend
Is it frontend

Property Value

ProductRelatedGroupCollection.
Example
class MyPage : System.Web.UI.Page
{
   private Product prod;
   public void ShowRelatedGroupList()
   {
       if (prod.RelatedGroups.Count > 0)
       {
           foreach (ProductRelatedGroup prg in prod.RelatedGroups(true))
           {
               //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