4

I have this table structure:
- CategoryID
- CategoryName
- ParentID

I want to load data from this table into a treeview control, to be able to edit/delete these records. How to do that?

1 Answer 1

2

For more details see: How do you databind to a TreeView control? (the question is WinForms, but still applies to ASP.NET)

The long and short is that you can't databind to a TreeView. TreeViews are hierarchical data structures and as such do not have a native binding mechanism. You'll have to roll your own binding to do this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.