15,897,518 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Madhukumar N (Top 8 by date)
Madhukumar N
10-Sep-14 6:31am
View
can you please give me the code i have around 5 levels of treenodes. and at the end i need to save the tree structure too if i delete the nodes to get filetered treeview i will be at problem while saving please help.
Madhukumar N
4-Sep-14 4:53am
View
Here is what i Need
I want to just give the level as input and expand that particular level of nodes from the Treeview
Madhukumar N
20-Aug-14 1:45am
View
Thanks for the help but after doing the above i couldn't be able to add child nodes into that node can you help?
The code is
Dim DT As New DataTable()
Dim DT1 As New DataTable()
Dim filter As String = ""
Dim OrderBy As String = ""
Try
DT = DS.Tables(0)
filter = "Branchparent is null"
OrderBy = "TreeOrderInd ASC"
For Each row In DS.Tables(0).Select(filter, OrderBy)
''tl.Nodes.Add(row.Item("BranchID").ToString(), row.Item("BranchName").ToString())
Dim Parenttreenode As New CustomTreeNode()
'Parenttreenode.Nodes.Add(row.Item("BranchID").ToString(), row.Item("BranchName").ToString())
Parenttreenode = tl.Nodes.Add(row.Item("BranchID").ToString(), row.Item("BranchName").ToString())
Parenttreenode.ImageIndex = 0
Parenttreenode.BranchType = ReplacevalueifNull(row.Item("BranchType").ToString(), 0)
Parenttreenode.BranchSubType = ReplacevalueifNull(row.Item("BranchSubType").ToString(), 0)
Parenttreenode.TreeOrderInd = ReplacevalueifNull(row.Item("TreeOrderInd").ToString(), 0)
''1st Tier Node
Dim filter1 = "BranchParent='" & row.Item("BranchID").ToString() & "'"
For Each row1 In DS.Tables(0).Select(filter1, OrderBy)
Dim Childtreenode1 As New CustomTreeNode()
Parenttreenode.Nodes.Add(row1.Item("BranchID").ToString(), row1.Item("BranchName").ToString())
'Childtreenode1 = Parenttreenode.Nodes.Add(row1.Item("BranchID").ToString(), row1.Item("BranchName").ToString())
Childtreenode1.ImageIndex = 1
Childtreenode1.BranchType = ReplacevalueifNull(row.Item("BranchType").ToString(), 0)
Childtreenode1.BranchSubType = ReplacevalueifNull(row.Item("BranchSubType").ToString(), 0)
Childtreenode1.TreeOrderInd = ReplacevalueifNull(row.Item("TreeOrderInd").ToString(), 0)
''2nd Tier Node
Dim filter2 = "BranchParent='" & row1.Item("BranchID").ToString() & "'"
For Each row2 In DS.Tables(0).Select(filter2, OrderBy)
Dim Childtreenode2 As New CustomTreeNode()
Childtreenode2 = Childtreenode1.Nodes.Add(row2.Item("BranchID").ToString(), row2.Item("BranchName").ToString())
Childtreenode2.ImageIndex = 2
Childtreenode2.BranchType = ReplacevalueifNull(row.Item("BranchType").ToString(), 0)
Childtreenode2.BranchSubType = ReplacevalueifNull(row.Item("BranchSubType").ToString(), 0)
Childtreenode2.TreeOrderInd = ReplacevalueifNull(row.Item("TreeOrderInd").ToString(), 0)
''3rd Tier Node
Dim filter3 = "BranchParent='" & row2.Item("BranchID").ToString() & "'"
For Each row3 In DS.Tables(0).Select(filter3, OrderBy)
Dim Childtreenode3 As New CustomTreeNode()
Childtreenode3 = Childtreenode2.Nodes.Add(row3.Item("BranchID").ToString(), row3.Item("BranchName").ToString())
Childtreenode3.ImageIndex = 3
Childtreenode3.BranchType = ReplacevalueifNull(row.Item("BranchType").ToString(), 0)
Childtreenode3.BranchSubType = ReplacevalueifNull(row.Item("BranchSubType").ToString(), 0)
Childtreenode3.TreeOrderInd = ReplacevalueifNull(row.Item("TreeOrderInd").ToString(), 0)
''4th Tier Node
Dim filter4 = "BranchParent='" & row3.Item("BranchID").ToString() & "'"
For Each row4 In DS.Tables(0).Select(filter4, OrderBy)
Dim Childtreenode4 As New CustomTreeNode()
Childtreenode4 = Childtreenode3.Nodes.Add(row4.Item("BranchID").ToString(), row4.Item("BranchName").ToString())
Childtreenode4.ImageIndex = 4
Childtreenode4.BranchType
Madhukumar N
12-Aug-14 5:23am
View
It must be like a property of a all the Nodes the values will change for nodes
Madhukumar N
6-Feb-14 4:56am
View
So how can i code for it so that it will take the selected text??
Madhukumar N
27-Jan-14 2:29am
View
Thanks for the reply but the thing is reverse here i have a button event in Dll library class where by clicking on the button in the dll class libary i need to enable or disable the button in the main project form
Madhukumar N
29-May-13 0:53am
View
Actually My Application is not in WPF its simple Windows application can u help out?
Madhukumar N
9-Dec-11 6:13am
View
hi
im talking here about the same row in the grid. the grid contains many check boxes and at a time only one checkbox must be checked so as soon as i check any checkbox others should get unchecked.
due to some reasons i dont want to use radio button for that.
so please help
Show More