Adding A Child To Collection....
Adding A Child To Collection....Old forum URL: forums.lhotka.net/forums/t/6494.aspx
vbkevin posted on Monday, February 23, 2009Can someone baby me through this.... I am using the 3.6 framework. I am guessing that it would... So if I had
I am guessin that there needs to be a method in LineItems called AddLineItem( string description, ect...). Here is where the LineItem.Add(blah,blah) would be called. Anyone have some sample code?
Fintanv replied on Tuesday, February 24, 2009To allow adding via something like a grid you will want to override AddNewCore in your collection.
Your suggestion to provide an add method is also fine:
LineItem AddLineItem(string description, int val)
LineItem child = LineItem.NewLineItem(description, val);
Copyright (c) Marimer LLC