Hi Frans,
Looking through the available item in the TpedList I came across the the DataSet. I know that the TypedList returns as a DataTable.
But when I use:
pageTree.DataSet.Relations.Add("NodeRelation", pageTree.DataSet.Tables[0].Columns["PageID"], pageTree.DataSet.Tables[0].Columns["ParentPageID"]);
I get - Object reference not set to an instance of an object.
Any ideas?
UPDATED: I have been doing this:
DataSet ds = new DataSet();
ds.Tables.Add(pageTree);
ds.Relations.Add("NodeRelation", ds.Tables[0].Columns["PageID"], ds.Tables[0].Columns["ParentPageID"]);
Which works fine.