I am going to go back to the first post on here, mine and ask you to please answer these questions.
1. I do not know, as of yet, where you even are putting this code?
As to do what you want, you should be using the Template code property (so the whole row is one color not in a single spot)
2. You didn't answer if after unchecking all, my question was, if you then check it and uncheck it manually does the row then show the correct colors.
Now this is one essentially a no-matter, because you should not have data
3. You said you are doing a Reset, which is great, but why do have ANY rows in it at all, if you did a reset.
The answer has to be that you still have it pointing to data and the reset isn't really ... doing what you want.
How many rows of data do you really have?
when you do a reset, do you also reset the data itself? And by this, I mean, you SHOULD have a hidden piece of code, that either clears the data or does whatever it is going to do and then calls Reset on the gallery. Me.. I dont trust reset. I trust clearing the data manually, but again I have no idea what you are doing or why you even need to do a reset.
You shouldn't need any variables, you don't need any special code, you don't need anything, I just need to understand it fully because the pattern you are doing is incorrect.
Is the gallery in a container? another gallery? custom Control?
Anytime i reset a gallery I do this and there is much more too it but this is the internet and 5 seconds :-)
Old School Way 1
1. I make the gallery invisible
2. I clear the data
3. I rebuild the data
4. I make the gallery visible
Clean Old School and I still do Way 2
1. Put your data into a temporary collection let's call it _MichaelsADorkoCollection
2. Populate _MichaelsADorkoCollection
3. Set your Gallery Items to MichaelsDorkoCollection (no _)
4. Do a ClearCollect(MichaelsDorkoCollection, SortbyColumns(_MichaelsADorkoCollection,"column", SortOrder.Ascending)
this way all the sorting and data creation happens BEFORE it hits the collection that is being shown
You know what happens now? The entire View of the Gallery is Batch updated and no Gliches... Not Blips, JUST fast instantaneous data.
And keep doing that with filters you add to the scree, do NOT add filters etc to your items, do it to your OnSelects etc then ClearCollect away and same-o
Now unless you are literally loading 1000000000000000 rows (which you cant) lol it will be clean every single time. because galleries for the longest time did not have a way to really reset them and they didn't have a Reset property so that option was out. So many times people would change the data and go OMG there is no data in my gallery.
And I would say sure there is... you have 15 rows see.. you just can't see them... bug yes. annoying yes., how to get around it was what I said to thousands of employes at Microsoft and outside.
Its time to go back to basics on this as its taking too long to help on a simple issue :-) and if you dont have it fixed I am pretty sure you are tired lol of it too