private void xtraTreeList1_CustomDrawNodeCell(object sender, DevExpress.XtraTreeList.CustomDrawNodeCellEventArgs e) { MyTreeNodeData data = xtraTreeList1.GetDataRecordByNode(e.Node) as MyTreeNodeData; if (data.ID == "A5" && e.Column.FieldName == "ID") { e.Appearance.BackColor = Color.WhiteSmoke; } }
private void button2_Click(object sender, EventArgs e) { MyTreeNodeData m = new MyTreeNodeData(); m.ID = "qwrqwrqw"; var xml = new MB.Util.Serializer.EntityXmlSerializer <MyTreeNodeData>(); string str = xml.SingleSerializer(m, "RootNode"); var mmm = xml.SingleDeSerializer(str, "RootNode"); }
private void button4_Click(object sender, EventArgs e) { MyTreeNodeData data = new MyTreeNodeData(); data.ID = Guid.NewGuid().ToString(); data.PrevID = xtraTreeList1.FocusedNode.GetValue("ID").ToString(); bindingSource.Add(data); }