rmatthew Posted March 6, 2006 Posted March 6, 2006 Ok, got my collection working (finally) .... So I think I am going fine, but I need another bread crumb. I would liek to make a property of an item that points back to its parent such as can be done with the datatable.row as below in the debug.writeline statement. Dim dt As New DataTable Dim dr As DataRow dr = dt.NewRow Debug.WriteLine(dr.Table.TableName) Any ideas? Quote
Leaders snarfblam Posted March 6, 2006 Leaders Posted March 6, 2006 Using the hypothetical Collection and CollectedObject classes, why not just add a field/property to store the parent Collection of the CollectedObject (for example CollectedObject.Parent). On the Collection.Add and Collection.Remove methods, update CollectedObject.Parent. Quote [sIGPIC]e[/sIGPIC]
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.