Hi All,
Back again if you’ve got time
I have a List Box which (essentially) draw a 10 column grid of small squares by however number of rows representing a series on contiguous dates - eg 10 Jan 2024 to 20 Jan 2024.
I have a Method called DisplayData which accesses a DB and then goes thru the records and displays a small icon representing a category of the record on the relevant date stored in the record - I hope that all makes sense.
So, if I then click on one of the icons, it brings up a (ShowPopover) window and displays the full details of the record for editing. After the window closes I want it to redo the ListBox in case the editing has moved it to a different location.
The code is in ListBox.CellPressed:
var c As new EditWindow
c.ShowPopover(Me, DesktopWindow.DisplaySides.Bottom, True, True)
DisplayData
So after I call the window, I then recall the Method. It appears to be “working” in that it updates but it does not immediately show any change. I have to click again on another cell to have the list box “redraw” correctly. I feel like it’s something to do with “Refresh” - am I on the right track?
I have tried ListBox.Refresh, ListBox.Refresh(True) and I have put them in the same area that calls the editing window after the DisplayData Method and I have tried putting them inside the Method, at the end.
I have even tried
List.Visible = False
List.Refresh(True)
List.Visible = True
I had the thought that I needed to do “something” with the ListBox to make it work.
I’m sure there is a simple way, can someone help, please??
As always, any help greatly appreciated
Barry