Ticket T261662
Visible to All Users

TreeList SetValue

created 10 years ago

Hi,
I create a TreeList with custom nodes, storded in an datatable:

DataRow r = treeListNode.dtRoot.NewRow();
                        r["dcObjName"] = item["Name"];
                        r["dcID"] = item["ID"];
                        r["dcObjID"] = item["ID"];
                        r["dcRelID"] = item["relID"];
                        r["dcColor"] = item["Color"];
                        r["dcStatus"] = 1;
                        r["dcFormat"] = item["Format"];
                        r["dcWMIQuery"] = item["WMIQuery"];
                        treeListNode.dtRoot.Rows.Add®;
Everything is fine, until I try to set a value of a specific node with:

foreach (DevExpress.XtraTreeList.Nodes.TreeListNode item in Node.Nodes)
                {
                    pInsertObject.Fill(DSet.pInsertObjcectTable, int.Parse(item["dcObjID"].ToString()), int.Parse(item.ParentNode["dcID"].ToString()), item["dcValue"].ToString(), 1, System.Environment.UserName);
                    ID=int.Parse(DSet.pInsertObjcectTable[0][0].ToString());
                    item["dcID"]= ID;
                    if (item.HasChildren)
                        SaveNeuenNode(item);
                }

After change the value of the node, the whole treelist.nodes is null.
Pls help
Thx
Gregory

Comments (1)
GK GK
Gregor Klatovsky 1 10 years ago

    Sorry my mistake I forgot to refresh the treelist

    Answers

    created 10 years ago

    Sorry my mistake I forgot to refresh the treelist

      Comments (1)
      DevExpress Support Team 10 years ago

        Hello,

        Thank you for informing us that the issue has been solved. Feel free to contact us if you have additional questions.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.