Hi,
I generate a TreeList programmatically and try to hide a TreeListNode after bound to a datasource.
Code Snipe:
dynTreeList.Dock = System.Windows.Forms.DockStyle.Fill;
dynTreeList.Location = new System.Drawing.Point(2, 21);
dynTreeList.Name = String.Format("treeList{0}", SubDS.pGetLinkObjectsByMasterObject[0]["Sammlung"].ToString());
dynTreeList.Size = new System.Drawing.Size(515, 602);
dynTreeList.TabIndex = 0;
dynTreeList.DataSource = SubDS.pGetLinkObjectsByMasterObject;
dynTreeList.OptionsBehavior.DragNodes = true;
dynTreeList.ParentFieldName = "relID";
dockManager1.AddPanel(DevExpress.XtraBars.Docking.DockingStyle.Float, dynPanel);
foreach (DataRow item in tSMDataSet.dtLinkObjects.Select(String.Format("Sammlung='{0}'",SubDS.pGetLinkObjectsByMasterObject[0]["Sammlung"].ToString())))
{
dynTreeList.FindNodeByFieldValue("Value", item["Value"]).Visible = false;
}
The TreeListNode is found, but setting the state to visible=false dose not work. If I change the value of the node, the change is applyed.
Thanks for your help.
Best regards
Gregor
Hello,
I tried to replicate this behavior in a sample project, but was unsuccessful. Attached is a project that illustrates my attempts to reproduce your scenario and the issue you are experiencing. Please try to modify this project so that it illustrates the problematic behavior and send it to us. This information will allow us to find an appropriate solution faster.
I hope to receive your response soon.