Home › Forums › WPF controls › Xceed DataGrid for WPF › Popup & Grid
I’m using the Popup control in WPF. I’m showing the Grid on the popup. The first time I show the popup with the grid, it looks great. The second time I try to show it. I get an empty popup.
I dug into it and realized that, my grid on the popup still carries the right number of rows, but has 0 columns (the second time around).
Is there a way I can force the grid to create the columns?
Imported from legacy forums. Posted by Murthy (had 418 views)
I fixed this by putting the grid in the <Page.Resources>.Then in the pop-up I put a contentPresenter instead of the grid.Bound the content of the ContentPresenter to the resource.
Now it works fine.
Imported from legacy forums. Posted by Murthy (had 2817 views)