Saturday, August 21, 2010

How to populate listview control with database in c#.net ?

i have this table and fields.table name is area


id_2 location_nam parent_id2


1 Pakistan


2 India


3 Iran


4 Afghanistan


5 Punjab 1


6 Sindh 1


7 Blochistan 1


8 NWFP 1


9 Layyah 6


10 Tahsil Layyah 9





which is show as


Pakistan%26gt;Punjab


Pakistan%26gt;Punjab%26gt;


Layyah%26gt;


Tah Layyah


Please help meHow to populate listview control with database in c#.net ?
That data is hierarchical. Wouldn't a TreeView be more appropiate? Search MSDN on how to populate a TreeView.

No comments:

Post a Comment