Need help with PropertyGrid
-
Now, I just recently found out about PropertyGrid and I think I like it. My problem is, I can't figure out how to display my tree in a apropriate way. My classes look like this: class MyTreeNode { List mylist = new List(); public MyTreeNode[] SubNodes { get { return (MyTreeNode[])mylist.ToArray(); } } public string Name = "something"; } I want this MyTreeNode class to display as a list of nodes; but instead of that [0] as a name it should display the node's Name-attribute. I would also like to set the value to something different. I just can't figure out how to do that exactly. please give me a hint. so long.
-
Now, I just recently found out about PropertyGrid and I think I like it. My problem is, I can't figure out how to display my tree in a apropriate way. My classes look like this: class MyTreeNode { List mylist = new List(); public MyTreeNode[] SubNodes { get { return (MyTreeNode[])mylist.ToArray(); } } public string Name = "something"; } I want this MyTreeNode class to display as a list of nodes; but instead of that [0] as a name it should display the node's Name-attribute. I would also like to set the value to something different. I just can't figure out how to do that exactly. please give me a hint. so long.
-
Now, I just recently found out about PropertyGrid and I think I like it. My problem is, I can't figure out how to display my tree in a apropriate way. My classes look like this: class MyTreeNode { List mylist = new List(); public MyTreeNode[] SubNodes { get { return (MyTreeNode[])mylist.ToArray(); } } public string Name = "something"; } I want this MyTreeNode class to display as a list of nodes; but instead of that [0] as a name it should display the node's Name-attribute. I would also like to set the value to something different. I just can't figure out how to do that exactly. please give me a hint. so long.
Apply the
ExpandableTypeConvertor
as theTypeConvertor
for that property. xacc-ide 0.0.15 now with C#, MSIL, C, XML, ASP.NET, Nemerle, MyXaml and HLSL coloring - Screenshots