Click here to Skip to main content
15,885,985 members
Articles / Desktop Programming / Windows Forms

Loading a TreeView using HierarchyID

Rate me:
Please Sign up or sign in to vote.
4.55/5 (9 votes)
5 Jun 2009CPOL3 min read 117.7K   5.1K   64  
Using SQL Server 2008 Hierarchy ID data type to populate a TreeView
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace TVHierachyID
{
	static class Program
	{
		/// <summary>
		/// The main entry point for the application.
		/// </summary>
		[STAThread]
		static void Main()
		{
			Application.EnableVisualStyles();
			Application.SetCompatibleTextRenderingDefault(false);
			Application.Run(new Form1());
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Retired None
Australia Australia
Started my programming life writing Excel 1.0 macros, God what a long time ago.

Now I'm a dotnet developer, I get to influence direction, play with new toys, build stuff, life is wonderful.

Greatest buzz you can get, walk past a row of desks and see your application running on all of them (and getting paid).

Greatest irritant, pouring 12 months of knowledge and experience into an empty head only to have it leave.

And now I'm retired, no deadlines, no meetings, no managers (except the ONE) and no users!

Comments and Discussions