Hello
I found a script to add alternating row colours to a Gallery: Add Alternating Row Colours to Power Apps Gallery - PowerApps Development Auckland New Zealand
I put this script in the "Data source" property of the gallery:
With(
{
records:MyDatas
},
ForAll(
Sequence(CountRows(records)),
Patch(
Last(
FirstN(records,Value)),
{rowNumber: Value}
)
)
)
And this script in the TemplateFill property of the Gallery:
If(
Mod(ThisItem.rowNumber,2) = 0,
Orange,
Transparent
)
The alternate colors work perfectly well but since I use it, the OnSelect function of the Gallery does not work anymore 😞
Any idea ?
Thks !

Report
All responses (
Answers (