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
530
Setting the CharacterCasing on a UltraTreeNodeColumn
posted

Hi, I'm trying to set the character casing on a UltraTreeNodeColumn to upper case. Any suggestiong? One of the columns is just plain text and the other I'm using a UltraDropDown. Thanks

  • 71886
    Offline posted

    Hi ehan,

    A possible approach to achieve this might be by hooking to the 'AfterDataNodesCollectionPopulated' event of the 'UltraTree' control and use the following code:

            private void ultraTree1_AfterDataNodesCollectionPopulated(object sender, Infragistics.Win.UltraWinTree.AfterDataNodesCollectionPopulatedEventArgs e)

            {

                foreach(UltraTreeNode node in e.Nodes)

                {

                    node.Cells[1].Value = node.Cells[1].Value.ToString().ToUpper();

                }

            }

    Please feel free to let me know if I misunderstood you or if you have any other questions.