Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
CheckBox in WinTreeColumn?
posted

Hi,

it's possible to create a winTreeColumn as CheckBox programmatically?

With Code such like

        private UltraTreeNodeColumn checkBoxColumn()
        {
            UltraTreeNodeColumn checkboxColumn = new UltraTreeNodeColumn();
            checkboxColumn.DataType = typeof(bool);
            checkboxColumn.CellAppearance (??????)
            return checkboxColumn;
        }

Thanks and Greatings: Rudy

  • 220
    posted

    Hi,

    i found out that it's simple with the AllowCellEdit - Option. Now I set it to "AllowCellEdit.Full", but I'm not able to edit the cell.(?)

    The Background:

    The Data comes by using the following code:

    UltraTreeNode nodeWP = this.ultraTreeRequirements.Nodes.Add("Root"); nodeWP.Nodes.SetDataBinding(eCU_ArticleQuery.Execute(MergeOption.AppendOnly).ToList(), "");

    In next step i Neet an unbound Checkbox to sho some dependencys:

    private void ultraTreeRequirements_ColumnSetGenerated(object sender, ColumnSetGeneratedEventArgs e)
            {
                switch (e.ColumnSet.Key)
                {
                    case "List1":
                        e.ColumnSet.Columns["ID"].Visible = false;
                        e.ColumnSet.Columns.Add("Check").DataType = typeof(bool);
                        e.ColumnSet.Columns["Check"].AllowCellEdit = AllowCellEdit.Full;

                        break;
                    case "":
                    case "LIst2":
                        e.ColumnSet.Columns["Value"].Visible = false;
                        break;
                }
            }

    What's to do to edit the manually added cell?

    Thanks an Greatings: Rudy