J
Jonas Nilsson
Hi!
I wan't to populate a IE Treeview control from one table in a database.
It looks like this:
Id
ParentId
Name
......
What is the best way to populate, i have tried to setup a relation between
the Id
and the ParentId field in the result DataSet but is doesn't seem to work.
( ds.Relations.Add( "SystemObject", ds.Tables[0].Columns["ParentId"],
ds.Tables[0].Columns["Id"] ) )
Returns this error:
( These columns don't currently have unique values )
Or should i use Rowfilter on a dataview to filter out the rows of a parent.
/Jonas
I wan't to populate a IE Treeview control from one table in a database.
It looks like this:
Id
ParentId
Name
......
What is the best way to populate, i have tried to setup a relation between
the Id
and the ParentId field in the result DataSet but is doesn't seem to work.
( ds.Relations.Add( "SystemObject", ds.Tables[0].Columns["ParentId"],
ds.Tables[0].Columns["Id"] ) )
Returns this error:
( These columns don't currently have unique values )
Or should i use Rowfilter on a dataview to filter out the rows of a parent.
/Jonas