|
Hi ! Consider the following class definitions:
Class Student { //members public int m_Age; public string m_Name;
//Properties public string Name{ get{return m_Name;}} public string Age{ get{return m_Age;}} }
Class School { Student s1; string m_SchoolName; School() { s1.m_Age = 14; s1.m_Name = "Joe"; }
//Properties pubic string SchoolName{get{return m_SchoolName;}} public Student1{get{return s1;}} }
Now, I create an object of class School say objSchool. Then I can display the properties of this object in the property grid.
BUT...while displaying the property Student1, the properties of object s1 are not displayed :-( What I want is a [+] sign to be displayed...and when expanded, it should reveal the properties of s1! For eg. in while displaying the properties for a Form, we see a [+] sign next to Size...and on clicking it, the proerties of Size object namely width/height are shown !! |