如何添加新节点与treelist数据库吗?how to add new node to database with treelist?

- 此内容更新于:2015-01-06
主题:

我有一个devexpress treelist一些节点和根源。我试图添加新节点或根我treelist当然将它添加到我的数据库。当我点击一个根,我想添加一个根节点。有人能帮助我吗?什么好主意吗? 我的代码:

原文:

I have a devexpress treelist with some nodes and roots. I am trying to add new nodes or roots to my treelist and of course to add it to my database. When I click a root, I would like to add a node to that root. Can somebody help me? Any ideas?

My code:

private void simpleButton2_Click(object sender, EventArgs e)
{
    DbCommand cmd = cnn.CreateCommand("SELECT * FROM YETKILENDIR_OZELLIKLER", CommandType.Text);
    treeList1.DataSource = cnn.GetData(cmd);
}