Multi Level Display of nodes in Dictionary
Posted: Mon Jun 13, 2011 1:51 am
Hi
I am working on a Report using Following class as Bussiness Class
public class DoorObject
{
public System.Drawing.Color DoorColor;
public string DoorName;
[Browsable(true)]
public System.Drawing.Color ColorOfDoor
{
set { this.DoorColor = value; }
get { return this.DoorColor; }
}
}
public class DoorCollection: System.Collections.CollectionBase
{
public void add(DoorObject Door)
{
List.Add(Door);
}
public void remove(DoorObject Door)
{
List.Remove(Door);
}
public DoorObject this[int Index] //the Item property for Doors.Item[x])
{
get
{
return (DoorObject) List[Index];
}
set
{
List[Index] = value;
}
}
}
public class House
{
private DoorCollection drCol = new DoorCollection();
public BusinessObjects.DoorCollection DoorsinHouse
{
set
{
this.drCol = value as DoorCollection;
}
get
{
return this.drCol;
}
}
}
This is displayed as following in Dictionary
+House
->>House
->>->>DoorsinHouse
+House_DoorsinHouse
->>ColorOfDoor
Ideally i would like to have it following way
+House
->>House
->>->>DoorsinHouse
->>->>->>ColorOfDoor
That's I would like it to be shown as a multilevel nodes rather than 2 seperate nodes
I am using Stimulsoft Reports.Net 2008.1 for Visual Studio 2003
Can you please guide ?
Anu
I am working on a Report using Following class as Bussiness Class
public class DoorObject
{
public System.Drawing.Color DoorColor;
public string DoorName;
[Browsable(true)]
public System.Drawing.Color ColorOfDoor
{
set { this.DoorColor = value; }
get { return this.DoorColor; }
}
}
public class DoorCollection: System.Collections.CollectionBase
{
public void add(DoorObject Door)
{
List.Add(Door);
}
public void remove(DoorObject Door)
{
List.Remove(Door);
}
public DoorObject this[int Index] //the Item property for Doors.Item[x])
{
get
{
return (DoorObject) List[Index];
}
set
{
List[Index] = value;
}
}
}
public class House
{
private DoorCollection drCol = new DoorCollection();
public BusinessObjects.DoorCollection DoorsinHouse
{
set
{
this.drCol = value as DoorCollection;
}
get
{
return this.drCol;
}
}
}
This is displayed as following in Dictionary
+House
->>House
->>->>DoorsinHouse
+House_DoorsinHouse
->>ColorOfDoor
Ideally i would like to have it following way
+House
->>House
->>->>DoorsinHouse
->>->>->>ColorOfDoor
That's I would like it to be shown as a multilevel nodes rather than 2 seperate nodes
I am using Stimulsoft Reports.Net 2008.1 for Visual Studio 2003
Can you please guide ?
Anu