I would like to add a column from behind code to a data bound ASPxTreeList . The column i wanted to add is always is the first column before the datafield of my table.
I manually set the visible index=0 but the datafield of my table having the visibleIndex=0 as well , so the layout of the result of the unbound column will be displayed as second column instead of first.
Is that anyway to always make sure the unbound column i added is always at the first column even with the databound ASPxTreeList?
The similar situation just like setting the SettingsSelection.Enabled=true , then the checkbox column will be shown at the first column.
Have you tried inserting column with Columns.Insert:
treeList.Columns.Insert(0, column)EDIT: I tested my solution and this is conclusion:
Columns.Insertandcolumn.VisibleIndex = 0works.Columns.Addandcolumn.VisibleIndex = 0doesn’t work.