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
1560
Setting the key of Node by databinding
posted

lets say im binding a tree to a dataset.

Is there a way to say that the KEY of the node will be This Column of the DataTable .... ?

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    You could do something like this:

            private void ultraTree1_InitializeDataNode(object sender, InitializeDataNodeEventArgs e)
            {
                e.Node.Key = e.Node.Cells["Key Field"].Text;
            }

Children