473,804 Members | 2,201 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

populate treeview control(windows forms)

how to populate a treeview in c#.net (windows forms) from a SQL Server
database ???
pls help me.
thanks in advance,
JJK
Jul 21 '05 #1
1 8792
You can use a DataReader or a DataTable and iterate through it, adding Nodes
at each iteration

http://support.microsoft.com/default...;EN-US;Q320755

HTH,

Bill

"Jacob John" <ja***@xpsoftwa re.net> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. ..
how to populate a treeview in c#.net (windows forms) from a SQL Server
database ???
pls help me.
thanks in advance,
JJK

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
1716
by: Mullin Yu | last post by:
hi, how can i add an an icon at the right button taskbar like that for MS-SQL server that i can have two options - Start - Stop which will call the OnStart of my Windows service and OnStop of my Windows service respectively.
7
1842
by: Ha ha | last post by:
how can i control a windows service through a web page, for example: start a service stop a service thanks *** Sent via Developersdex http://www.developersdex.com *** Don't just participate in USENET...get rewarded for it!
0
1956
by: cyshao | last post by:
Hi, My Friends: I have a program and I want to let machine automaticly auto it by using Windows task schedule. Sure, I can manually Create/Modify task in Windows task schedule. But I also hope to Create/Modify tasks by programming, for another program want to generate many tasks. Could you tell how to control windows task schedule by programming ? Thanks
1
305
by: Jacob John | last post by:
how to populate a treeview in c#.net (windows forms) from a SQL Server database ??? pls help me. thanks in advance, JJK
3
6905
by: Francois Stander | last post by:
Hi, Could anyone assist me. I wrote a windows application and is tested successfully. This app must run as a windows service, so I copied the code into a new "windows service project" The problem is with the timer control. These lines result in errors as no form exists. How can I use a timer "control" in a service.? (vb.net) Much appreciation. Here is a snippet of the in error code: Friend WithEvents timerRefresh As...
1
1336
by: shivram | last post by:
hey!! am currently building a search application for documents. wherein am using the listview control in VJ# . So its like i display the document name, path and some relevance value using the details view. The problem is how do i make it open documents that am currently double clicking. ie if am having a document say license.doc how do i make MS word open this license.doc when i jus double click on the listview control am designing..
1
1700
by: Franck | last post by:
I'm basicly a Vb6 dev but i actually have to play around with c# alot more. I have studied C# at school at beginner/intermediate level so i understand the bases. I'm working on a project that i need to open windows explorer on a folder X. That i managed to do it with : System.Diagnostics.Process.Start(@"C:\blablabla\"); that work #1 but now another option need to be able to open a folder like that but run a search starting at that root...
1
1294
by: neehakale | last post by:
I am doing 1 application where i need to display folder as a root node in TreeView and the files in that folder as child Nodes...can anybody of u knoe how to do this.... or how to pass the path of that folder to the TreeView Node..???
7
3578
by: fadah | last post by:
Is there a way to list opend mdichild forms in treeview so i could open them while i click on treeview nodes with the form name.I allready got the way how i can get the opend mdichild forms to list in treeview, now i need to make a click event so selected node would open the selected form. How can i get that. Plz help ty.
1
10354
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10097
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9175
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7642
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5535
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.