I have a simple question regarding hierarchical data.
I have one table which I return as a data reader.
id (int) desc (varchar) parentid (int)
1 desc 1 NULL
2 desc 2 1
3 desc 3 2
4 desc 4 NULL
5 desc 5 4
This table is self-referencing, i.e. linked list
I know the tree view can handle this relationship automatically
how can I implement this into the grid? can anyone give me a simple example?
I simply tried
this.radGridView1.Relations.AddSelfReference(this.radGridView1.MasterTemplate, "id", "parentid");
but it doesn't show any results in the table.