日期:2014-05-17 浏览次数:21031 次
using System;
using System.Windows.Forms;
using System.Data;
namespace Demo
{
public partial class Form1 : Form
{
TreeView treeView = new TreeView();
public Form1()
{
InitializeComponent();
SetupControl();
}
private void SetupControl()
{
DataTable dt = new DataTable();
dt.Columns.AddRange(
new DataColumn[]{
new DataColumn("员工ID"),
new DataColumn("上级ID"),
new DataColumn("员工姓名"),
new DataColumn("部门")
}
);
string[][] data =
{
new string[]{"1","0","AX","生产部"},