Below code generates exception "Key already exists":
ultraTree1.Nodes.Add("HELLO");ultraTree1.Nodes.Add("hello");
Is it possible to make WinTree case-sensitive? By default UltraTree doesn't distinct keys, which differs in letter case (as "hello" and "HELLO").
No, there is no way to make the keys case sensitive.
I am very confused. in some places people say keys are NOT case sensitive in others they say they are.
Which is it?
namrataghadi said:Has this feature been implemented yet??
No, I encourage you to Submit a feature request to Infragistics
Mike,
I have just requested this to become a feature, thanks for the link! Does Infragistics have a UserVoice site, or the like, so that we might be able to gain some visibility into the current feature requests, most popular etc?
Thanks,
Nick
Hi Nick,
No, I don't think we have anything like that for feature requests, yet.
When binding the tree to a collection of objects, is it possible to tell the tree what property you want to use as the key? Because my data is case sensitive, but if I can provide a property that would be unique across the tree, that would probably alleviate my problem.
What you can do is handle the InitializeDataNode event and set the Key of the Node to whatever key you want. Be sure to check e.ReInitialize and only set the key when it is false (assuming that your keys won't change).