Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

treeview custom property problem

Status
Not open for further replies.

drey8

Programmer
Aug 31, 2004
17
US
am creating a databound treeview but i am having trouble with one property.
I created a collection to hold labels. and i added to the designer.
I can create the labels, however, i do not know how can i save it;
I do not have a problem with the string and int properties, .net saves them in the designer.cs.
PS: i am using the 2005 beta.

public class MyTreeColumns // this is my class containing the string label
public class MyTreeColumnsCollection:CollectionBase // this is my collection of labels with methods for indexing, Add, Indexof, insert, remove, and contains.

in the dataTreeView class I added:
MyTreeColumnsCollection _objects = new MyTreeColumnsCollection();

[Browsable(true)]
public MyTreeColumnsCollection TreeColumns
{
get
{
return _objects;
}
set
{
_objects = value;
}
}

what i am missing?
thank you
drey
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top