1.需求背景 需要一个支持勾选,拖动节点,保存各节点顺序的目录树。 2.创建目录树 在treeList控件中添加两个colunm 用来显示绑定数据和显示值。 接下来对treeList的属性进行设置 // 设置列不显示 treeList.OptionsView.ShowColumns = false; // 设置序号列不显示 treeList.OptionsView.ShowIndicator = false; // 设置垂直线不显示 treeList.OptionsView.ShowVertLines = false; // 设置水平线不显示 treeList.OptionsView.ShowHorzLines = false; // 设置焦点框为行焦点 treeList.OptionsView.FocusRectStyle = DevExpress.XtraTreeList.DrawFocusRectStyle.RowFocus; // 隐藏第一列(数据列) treeListColumn1.Visible = false; // 设置不可编辑...
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile