15,896,606 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 Member 12694392 (Top 16 by date)
Member 12694392
16-Jan-23 10:56am
View
This is duplicating time column, which is not not required.
Member 12694392
16-Jan-23 10:52am
View
I have created function in PostgreSQL which returns me data as below, function is called in loop w.r.t.number of columns i.e Value from user input.
string cmd = @"select time_stamp,value from data(arguments)
var oda = new NpgsqlDataAdapter(cmd, DBConnection.Pconn);
oda.Fill(datatable);
datatable.Columns["value"].ColumnName = StringUniqueColumnNamefilledatRunTime;
The Above result is as below
Time Col1 Col2 10:00 1 11:00 2 10:00 3 11:00 4
required output is
Time Col1 Col2
10:00 1 3
11:00 2 4
Member 12694392
16-Jan-23 10:46am
View
I am using single DataTable only, the challenge is only with data not merged. hence timestamp get duplicated everytime
Member 12694392
16-Jan-23 10:19am
View
No, will be passing it to RDLC report.
Member 12694392
21-Oct-22 5:38am
View
Thanks for the response, had already checked and also build logic accordingly but did not help. Referral code below
int max_row = Convert.ToInt32(FinalDT.Rows.Count);
foreach (DataRow row in FinalDT.Rows)
{
string tagName = Convert.ToString(row["tag_name"]);
string[] parts = tagName.Split('.');
TreeNodeCollection nodes = TV_TagList.Nodes;
for (int i = 0; i < parts.Length; i++)
{
string valuePath = string.Join(".", parts, 0, i);
TreeNode node = TV_TagList.FindNode(valuePath);
if (node == null)
{
node = new TreeNode(parts[i]);
nodes.Add(node);
}
nodes = node.ChildNodes;
}
}
I not getting unique data in mention logic above. stuck at this place.
Member 12694392
21-Oct-22 4:09am
View
the mentioned for loop code works fine at windows application end. the same logic when tried in asp.net, containskey property is not part of Treenodecollection hence the logic fails.
I need help to find out an alternate way to populate tree view using above mentioned example as input from datatable
Member 12694392
14-Oct-19 23:13pm
View
cool it worked with following changes on Richard post
string valuePath = string.Join(TreeView1.PathSeparator.ToString(), parts, 0, i+1);
Thanks Richard Deeming
Member 12694392
6-Oct-19 23:14pm
View
in the above example NoBug is parent and T1 is parent1 but when i plot the tree w.r.t. above example i get multiple T1.
the logic mentioned only compares parent not parent1.
TIA
Member 12694392
4-Oct-19 7:45am
View
TreeNodeCollection nodes = TreeView1.Nodes;
foreach (string name in data)
{
if ((node = TreeView1.FindNode(name)) == null)
{
node = new TreeNode(name);
nodes.Add(node);
}
nodes = node.ChildNodes;
}
done but not working correctly in this case.
NoBug.T1.S1
NoBug.T1.S2
NoBug.T1.S3
NoBug.T2.N1
NoBug.T2.N2
NoBug.T2.N3
T1 and T2 appears multiple times which is not right.
Member 12694392
8-Apr-19 3:38am
View
yes planning the same way.
actually i was thinking if there could be a easier work around.
thanks
Member 12694392
20-Feb-19 7:10am
View
it worked thanks
Member 12694392
20-Feb-19 6:44am
View
the string added is just for example, data can have any number of sub parent,child. i need the actual logic to compare the current holding string value with all nodes in tree view. i am stuck at this place only
Member 12694392
20-Feb-19 6:37am
View
that is what i am trying to figure out how it can be done. please help
Member 12694392
5-Feb-19 4:03am
View
thanks for the reply. i have been through the links, but since i am new into this i am not able to understand. an runtime exmaple would be very helpful.
thanks
Member 12694392
14-Feb-17 23:43pm
View
hi, i am facing relative problem. currently i am running my code in 64 bit operating system which is extracting data from a 32 bit dll. this is not happening.
pl need help thanx
regards
sushant
Member 12694392
16-Jan-17 7:33am
View
i want to call a function in the tick event. but i am not able to get the tick property only of the timer hence cannot go into the tick event
Show More