Hi, I have a table with the Bill of Material structure, and I want to show in a TreeView.
Showing the levels the BOM. I try to do with the Recursive Example, but I can't...
I sent to you a file, with the structure of my table. Please help me.
Thank
I think you need to create a DataRelation on the DataSet. For example,
ds.Relations.Add(
new DataRelation("MyRelation",
ds.Tables[0].Columns["KeyID"],
ds.Tables[0].Columns[
"ParentKeyID"]));
The file attached here is an Excel WorkBook, so first you need to export that to a database table. Once you do that, create a DataTable (and DataSet with appropriate relations if you want to define a recursive relation) from that database table, and set the UltraTree's DataSource to the result.