Click here to Skip to main content
15,844,156 members
Home / Discussions / C#
   

C#

 
GeneralRe: Treeview in a thread Pin
Ronni Marker24-Oct-09 23:51
Ronni Marker24-Oct-09 23:51 
GeneralRe: Treeview in a thread Pin
Nicholas Butler25-Oct-09 0:32
sitebuilderNicholas Butler25-Oct-09 0:32 
GeneralRe: Treeview in a thread Pin
Ronni Marker26-Oct-09 18:59
Ronni Marker26-Oct-09 18:59 
AnswerRe: Treeview in a thread Pin
Luc Pattyn25-Oct-09 13:35
sitebuilderLuc Pattyn25-Oct-09 13:35 
GeneralRe: Treeview in a thread Pin
Ronni Marker26-Oct-09 19:03
Ronni Marker26-Oct-09 19:03 
QuestionHow can i run the open and save file codes in C# ??? [modified] Pin
ghe143lhei24-Oct-09 20:59
ghe143lhei24-Oct-09 20:59 
AnswerRe: How can i run the open and save file codes in C# ??? Pin
OriginalGriff24-Oct-09 23:43
mveOriginalGriff24-Oct-09 23:43 
Questionhow to bind TreeView to hierarchical data (Recursive Queries) ? Pin
hdv21224-Oct-09 19:25
hdv21224-Oct-09 19:25 
Hi i want to display hierarchical data in treeView, for example i have a recursive query which get employees and his/her manager in northwind database like this :

WITH cte1 (LastName, EmployeeID, Manager, ManagerID, Level)
AS
(
	SELECT e1.lastName, e1.employeeID, e2.LastName, e1.ReportsTo, 0
	FROM Employees e1 LEFT JOIN employees e2 on e1.ReportsTo = e2.EmployeeID
	WHERE e1.ReportsTo IS NULL
	
	UNION ALL
	
	SELECT e1.lastName, e1.employeeID, c.LastName, e1.ReportsTo, Level + 1
	FROM Employees e1 JOIN cte1 c ON e1.ReportsTo = c.EmployeeID		
)
SELECT * FROM cte1


now, i want to display this result set to treeview in hierarchical mode, but i don't know how to do this. can anybody provide source code ?
thanks
QuestionAn array of valuetypes that contain ponters to other valuetypes in an array. [modified] Pin
CaptainSeeSharp24-Oct-09 14:13
CaptainSeeSharp24-Oct-09 14:13 
AnswerRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 14:16
protectorChristian Graus24-Oct-09 14:16 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
CaptainSeeSharp24-Oct-09 14:30
CaptainSeeSharp24-Oct-09 14:30 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 15:12
protectorChristian Graus24-Oct-09 15:12 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Not Active24-Oct-09 16:47
mentorNot Active24-Oct-09 16:47 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus25-Oct-09 0:24
protectorChristian Graus25-Oct-09 0:24 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus24-Oct-09 15:42
protectorChristian Graus24-Oct-09 15:42 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. [modified] Pin
CaptainSeeSharp24-Oct-09 17:01
CaptainSeeSharp24-Oct-09 17:01 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
Christian Graus25-Oct-09 0:23
protectorChristian Graus25-Oct-09 0:23 
GeneralRe: An array of valuetypes that contain ponters to other valuetypes in an array. Pin
miss YY26-Oct-09 0:33
miss YY26-Oct-09 0:33 
Questioncaptcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 6:17
yogesh_softworld12324-Oct-09 6:17 
AnswerRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 8:24
professionalAbhishek Sur24-Oct-09 8:24 
GeneralRe: captcha image from WebBrowser into a picturebox [modified] Pin
yogesh_softworld12324-Oct-09 8:33
yogesh_softworld12324-Oct-09 8:33 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 8:38
professionalAbhishek Sur24-Oct-09 8:38 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 9:15
yogesh_softworld12324-Oct-09 9:15 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
Abhishek Sur24-Oct-09 10:10
professionalAbhishek Sur24-Oct-09 10:10 
GeneralRe: captcha image from WebBrowser into a picturebox Pin
yogesh_softworld12324-Oct-09 10:39
yogesh_softworld12324-Oct-09 10:39 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.