Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have table T1:

Id ParentId TariffName Unit Price
25 0 حديد NULL 0.00
26 0 المونيوم NULL 0.00
27 0 مواسير NULL 0.00
28 0 صاج NULL 0.00
29 0 فيبر NULL 0.00
30 0 بويات NULL 0.00
31 26 المونيوم مسطح طن 2000.00
32 27 مواسير أطوال متر 300.00
33 25 حديد مجلفن طن 3000.00
34 29 mat 300 layer 300.00
35 29 BLT 800 layer 500.00
36 0 Electrical NULL 0.00
37 36 cable 4x4 16 meter 400.00
38 25 general ton 2500.00
39 25 rolling ton 3000.00
40 0 خشب NULL 0.00
41 0 بلاستيك NULL 0.00


and I have to fill a Treeview control with the tariff names from this table (using C# 2010).
Posted
Updated 27-Apr-13 22:19pm
v2
Comments
db7uk 27-Apr-13 8:52am    
ASP.NET, WPF or Winforms?
othman_325 27-Apr-13 10:12am    
winforms
Richard MacCutchan 28-Apr-13 6:50am    
You could use databinding or manually add the items to each node. however, your question lacks any useful detail to be able to provide a better answer.

1 solution

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.


For now, here: Data Binding TreeView in C#[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900