Any way to hide/show a TadvOutlooklist Group ?

Hi everyone.

I can't find a way to show or hide a group in a tadvoutlooklist at runtime.
Any ideas how to do that ?

Best regards

You can use the property TOutlookGroup.Expanded: boolean to control whether a group is visible (expanded) or not.

Thx for reply (sunday) :slight_smile:
I wish completly hide the group, even caption and item counter.
I need to have a 'global' group visible when the outlook list has more than 1 group, this global group must be hide when only 1 group.
Capture d’écran 2022-08-28 185222
Only 1 "real" group, first group (without caption) must not be visible
Capture d’écran 2022-08-28 185206
More than 1 "real" group, first group must stay visible.

Best regards

Unfortunately at this moment there is not a built-in functionality to hide a group. This would require extensions to be done in TAdvOutlookList.

OK. I will keep the "no caption" way I use :)