谁用过TreeListLookupEdit控件啊?急急。。。
TreeListLookupEdit控件怎么生成出树形的结构啊。。。完全没有思路啊,求解啊。这玩意实际上就是下拉里面包含了个 treelist 你 treelist怎么设置里面的树就怎么设置
Using gcDataAdapter = New OracleDataAdapter(lvarSql, oraConnection)
Using gcDataSet = New DataSet()
gcDataAdapter.Fill(gcDataSet, "department")
tllueDepart.Properties.DataSource = gcDataSet.Tables("department")
tllueDepart.Properties.DisplayMember = "NAME"
tllueDepart.Properties.ValueMember = "ID"
Dim nn As Integer = gcDataSet.Tables("department").Rows.Count
If nn > 1 Then
tlDepart.Nodes(0).Expanded = True
tllueDepart.EditValue = gcDataSet.Tables("department").Rows(0)("ID")
End If
End Using
End Using
页:
[1]