how to show data from database to treeview.
example: data like this

code Menuname l_evel parent
M01 Maintenance 2 File
M0101 Area 3 M01
M0102 Terms 3 M01
M0103 Category 3 M01
M010401 Rate Maintenance 4 M0104
M0106 Customer 3 M01
M010601 Customer Maintenance 4 M0106

please give code.

thx

OK.
I try to explain how to use the TtreeView. Let say we have database with table like this: create table

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.