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
410
How Do I: Change display text of a databound UltraTree node...
posted

 e.ColumnSet.NodeTextColumn = e.ColumnSet.Columns["Description"];

 How can I override the text displayed in a databound UltraTree so that the text displayed draws from more than one column....the control is set ViewStyle.Standard....

If one does not set the NodeTextColumn then the first column/cell is chosen as the text...

If one sets the NodeTextColumn then that columns.cell text is chosen....

I need to display text that has both the data from the [ID] column and [Description] column:

"22 - Whirlygigs"

Tx in advance

Carson Wales 

  • 69832
    Verified Answer
    Offline posted

    The control does not support the display mode you describe here. However, you should be able to add a "dummy" column to the table to which the tree is bound, and make the values of the cells in that column something like, string.Format("{0} - {1}", columns[ID], columns[Description]). Then set the NodeTextColumn property to reference that column.