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
180
[UltraWinListView.Groups.Contains] How to check if group exists / when does Contains() return 'true'?
posted

Hi,

I'm working with the UltraWinListView Control and Groups. I have the following example-code:

UltraListView view;
Console.WriteLine("Chk: " + view.Groups.Contains("x")); // Chk: False
Console.WriteLine("Add: " + view.Groups.Add("x").Key); // Add: x
Console.WriteLine("Chk: " + view.Groups.Contains("x")); // Chk: False

I would expect the Contains-method the return true in the second call, since a Group keyed "x" is already in there.

How can I check, if a by key specified group exists?

When does Contains() actually return true?

Thank you

Patrik

Parents Reply Children
No Data