隐藏某列:
this.treeListUser.Columns[3].VisibleIndex = -1;
绑定:将数据源指定到一个临时表
this.treeListUser.DataSource = dtUserInfo;
this.treeListUser.PopulateColumns();
不允许编辑,设为只读:
dtUserInfo.Columns[0].ReadOnly = true;
博客介绍了TreeList控件的相关操作,包括隐藏某列,通过代码this.treeListUser.Columns[3].VisibleIndex = -1实现;将数据源指定到临时表进行绑定,使用this.treeListUser.DataSource = dtUserInfo等代码;还设置了不允许编辑,设为只读,通过dtUserInfo.Columns[0].ReadOnly = true实现。
隐藏某列:
this.treeListUser.Columns[3].VisibleIndex = -1;
绑定:将数据源指定到一个临时表
this.treeListUser.DataSource = dtUserInfo;
this.treeListUser.PopulateColumns();
不允许编辑,设为只读:
dtUserInfo.Columns[0].ReadOnly = true;
1753

被折叠的 条评论
为什么被折叠?