Click here to Skip to main content
15,867,923 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi all

I want to bind menustrip using database values . My table contains

MenuId ParentId Action

finance nothing null
Purchase nothing null
Masters finance
Masters Purchase
transn finance
transn Purchase
Reports finance
Processing finance
Setup finance
Company Masters
Accounts Masters
supplier Masters frmSupplier


Menu strip in the form

Finance
Masters
Company
Accounts
Supplier
Transn
Report
Setup
Purchase
Masters
Transn
Report
Setup
Sub items comes untill action not equal to null
Can anybody give sample coding for the same

Thanks in Advance
Posted
Comments
Oshtri Deka 29-Feb-12 7:57am    
What do you actually want?
An algorithm to create your menu tree or how to bind your toolStripItems to data source in order to track and submit changes?

Please be more specific.
amritha444 29-Feb-12 23:42pm    
I want algoritham .i have table design.i want to code to bind menu and submenu according to above mentioned table

1 solution

This[^] article might be of help to you.
 
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