Answer:
We can able to add the item to the nested list in ListView component using AddItem method.
When we set the target in AddItem method, it will add the corresponding node as children for target element.
List<DataModel> data = new List<DataModel>() { DataModel list = new DataModel() //ListView.AddItem(node, target) this.listView.AddItem(data, list); |
Refer to the below sample
link. In this sample, we have added the item by button click.