[求助]日期列设置目录树的问题 Post By:2013/2/27 19:29:00 [显示全部帖子]
Dim cmd1 As New SQLCommand Dim dt1 As DataTable cmd1.CommandText = "SELECT DISTINCT 日期,单号 From {入库}" dt1 = cmd1.ExecuteReader() Dim trv1 As WinForm.TreeView = e.Form.Controls("TreeView2") trv1.BuildDataTree(dt1, "","日期","单号") trv1.Nodes.Insert("全部单据",0)