Custom item list
-
Hi, I was wondering: I have an user-control called myUserControl. This control contains items, say myUserControlItems. Now I want to add a property to myUserControl, which contains a list of myUserControlItems. So:
myUserControl usrctrl = new myUserControl();
myUserControlItem usritem = new myUserControlItem();
myUserControl.Items.Add(usritem);I can accomplish this by setting the type of the property to myUserControlItem[], but this isn't as dynamic as e.g Listviewitems in a ListView. Can somebody help me out on this one? Greets, Zaegra
Motivation is the key to software development.
-
Hi, I was wondering: I have an user-control called myUserControl. This control contains items, say myUserControlItems. Now I want to add a property to myUserControl, which contains a list of myUserControlItems. So:
myUserControl usrctrl = new myUserControl();
myUserControlItem usritem = new myUserControlItem();
myUserControl.Items.Add(usritem);I can accomplish this by setting the type of the property to myUserControlItem[], but this isn't as dynamic as e.g Listviewitems in a ListView. Can somebody help me out on this one? Greets, Zaegra
Motivation is the key to software development.
-
Hi, I was wondering: I have an user-control called myUserControl. This control contains items, say myUserControlItems. Now I want to add a property to myUserControl, which contains a list of myUserControlItems. So:
myUserControl usrctrl = new myUserControl();
myUserControlItem usritem = new myUserControlItem();
myUserControl.Items.Add(usritem);I can accomplish this by setting the type of the property to myUserControlItem[], but this isn't as dynamic as e.g Listviewitems in a ListView. Can somebody help me out on this one? Greets, Zaegra
Motivation is the key to software development.
-
Hi, I was wondering: I have an user-control called myUserControl. This control contains items, say myUserControlItems. Now I want to add a property to myUserControl, which contains a list of myUserControlItems. So:
myUserControl usrctrl = new myUserControl();
myUserControlItem usritem = new myUserControlItem();
myUserControl.Items.Add(usritem);I can accomplish this by setting the type of the property to myUserControlItem[], but this isn't as dynamic as e.g Listviewitems in a ListView. Can somebody help me out on this one? Greets, Zaegra
Motivation is the key to software development.
Zaegra wrote:
Custom item list
you call it a list, yet you don't use a List<>? :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Merry Christmas and a Happy New Year to all.
-
Zaegra wrote:
Custom item list
you call it a list, yet you don't use a List<>? :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
Merry Christmas and a Happy New Year to all.