@slalithprasad
// checkbox outside gallery
CheckAll.Default = ctxNoSingleUnchecked
CheckAll.OnCheck =
UpdateContext({ctxAllCheck: false});
UpdateContext({ctxAllCheck: true});
UpdateContext({ctxNoSingleUnchecked: true});
Reset(Gallery1);
CheckAll.OnUncheck=
UpdateContext({ctxAllCheck: true});
UpdateContext({ctxAllCheck: false});
UpdateContext({ctxNoSingleUnchecked: false});
Reset(Gallery1);
// checkbox inside gallery
CheckBox1.Default = ctxAllCheck
CheckBox1.OnCheck=
If(CountRows(Filter(Gallery1.AllItems, !Checkbox1.Value))=0, UpdateContext({ctxNoSingleUnchecked: true}) );
CheckBox1.OnUncheck=UpdateContext({ctxNoSingleUnchecked: false})