I snagged some code online to help me in a project where I need to style the rows of a datagrid.
The code creates an array of list items using the listItems property. Sadly this appears to only be a list of the items that are displayed on screen. Even sadder is that even though the code will style a row it styles every nth row in the datagrid where n is the number of items displayed on screen. So if I have a list of 50 items and I style row 2 it also results in rows 12, 22, 32 and 42 being styled. Is there any way to replace listItems in this code so that it returns all of the items and not just the currently displayed items? TIA

