choosing variables changes propgrid layout

When changing type to variable, the corresonding value option will take
the form of a drop down menu.