Component not visible until I click on/off Details panel

I’m creating a static mesh component dynamically in C++. I can see it in the viewport after I click my button, but not in the details panel of the Actor I attached it to. That is, until I deselect the actor and then click on it again.

I tried GEditor->RedrawAllViewports() but it didn’t have any effect. What is the proper way to refresh the Details panel after dynamically adding components to the Actor?