#region 树treeList_CustomDrawNodeCheckBox private void treeList_CustomDrawNodeCheckBox(object sender, CustomDrawNodeCheckBoxEventArgs e) { if (e != null && e.Node != null && e.Node.Tag != null) { if (e.Node.Tag.ToString() == "-1") { e.ObjectArgs.State = DevExpress.Utils.Drawing.ObjectState.Disabled; } } } #endregion private void treeList_BeforeCheckNode(object sender, DevExpress.XtraTreeList.CheckNodeEventArgs e) { if (e.Node.Tag.ToString() == "-1") { e.State = CheckState.Unchecked; } }