parent category>>sub category

Posted by Kashif under C# on 7/19/2013 | Points: 10 | Views : 2636 | Status : [Member] | Replies : 2
Hello,
I m developing application using VS-2005. In this
application i have a dropdownlist.
In dropdownlist i want to display categories, sub-categories,
sub-sub-categories upto any level
(for eg. country--state--district--city--village etc.)
The dropdownlist will look like
Arts
--camera
--photography
----General Photos
----Digital Photos
Company
--employee
----Jr. employee
----Sr.employee
--Manager
----HR manager
----General manager
here i shown categories upto 3 levels but, levels will be 4-5 or more
In database table i have two columns named categoryid(primary key of
categories table) & another one is
parentid(which stores value of main categoryid)
eg. in above dropdown items, categoryid for Arts category is 1 and
parentid
is 0. & parentid of Arts(i.e. 1)
is parentid of camera & photography & like this will continue

if anyone have solution for finding subsub-categories them reply me




Responses

Posted by: Kashif on: 7/25/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Jitendra Kumar,

i understand that what u said,,,but it will solve only my dropdown problem,but i also want to show it in gridview field like Men>>clothing>>shirts....
any tutorial?




Kashif, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Kashif on: 7/26/2013 [Member] Starter | Points: 25

Up
0
Down
Hi Jitendra Kumar ,


You are not understanding me about gridview i want to display categories like this,,,view the image in below link please

http://i.stack.imgur.com/EpmqL.png

if u can help than it will be gooood ,,because my project is paused due to this problem.
Thanks.
`


Kashif, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response