On the first page, the numbers equal or lower than 115 are in red, the rest higher than 115 on the same page are in black as expected. When I move to the 2nd page, the color remains red despite the values are larger than 115
B4X:
Sub B4XTable1_DataUpdated
CreateCustomFormat(x) 'works for 1st page, then breaks down after that, even when I add sleep(0)
B4XTable1.Refresh
End Sub
B4X:
Sub CreateCustomFormat (c As B4XTableColumn)
Dim formatter As B4XFormatter
formatter.Initialize
c.Formatter = formatter
Dim range As B4XFormatData= c.Formatter.NewFormatData
range.TextColor = Colors.Red '100 thru 115 are red, rest black
c.Formatter.AddFormatData(range,100, 115, True)
End Sub
If Erel or our Jewish friends read this, Happy Hanukkah
I did run it before I posted the thread when I created the table without going through the update and the result was exactly the same, It breaks down after the 1st page.