Forcing Itemlist to repaint?

Am doing Editor script with UI Toolkit

I have an Itemlist, from UI Toolkit populated wit labels, via C#
Through “OnEnable()” I make it draw the labels for it’s list, no problem

when I update the list, I cannot see how to make it the UI (without updating the entire window)
Any combo of

m_ItemList.MarkDirtyRepaint();
m_ItemList.Refresh();
  • all over the place sometimes makes the list update, but it appears random, I cannot just get it to steady update when I have updated it’s content.

It always works to Close the Editor window, but how do I make the UI update with the list via code?

Thanks :slight_smile:

What is “m_ItemList”? Is it a ListView? If so, have a look at my recent answer here about ListView: