Answers for "how to add checkbox to a column in devexpress treelist in c#"

C#
1

how to add checkbox to a column in devexpress treelist in c#

// add check box only for Node == TimeTable and column == isLeapYear
private RepositoryItemCheckEdit repositoryItemCheck = new RepositoryItemCheckEdit();

private void TreeList_CustomNodeCellEdit(object sender, GetCustomNodeCellEditEventArgs e)
{
    if (e.Node.Tag is TimeTable timeTable && e.Column.FieldName == isLeapYear) e.RepositoryItem = repositoryItemCheck;
}

// add check box for all nodes in column
UcView.TreeList.RepositoryItems.Add(repositoryItemCheck);
colIsLeapYear.ColumnEdit = repositoryItemCheck;
Posted by: Guest on January-18-2021

Code answers related to "how to add checkbox to a column in devexpress treelist in c#"

C# Answers by Framework

Browse Popular Code Answers by Language