I have the method ApplyCellStyle that changes background color of certain cells in certain rows in the WebListbox. This method was called from custom LineAdded event of the WebListbox in the old version of the app (Xojo2018) when using custom DbListbox class.
In Xojo2024R2.1 I have removed the custom DbListbox class since I want to use DataSource class. In the RowData method I can determine color code needed and write to Tag.
I need now to use this value with the line/colum number to change the cell background color by using custom ApplyCellStyle method.
I am not sure if I can do it from within DataSource.RowData method. How should I go about this?
Since nothing is ever easy, if I call the method ApplyCellStyle I get the runtime error:
So how do I change the background color of the cell after all?
5 posts - 2 participants