Home Forums WPF controls Xceed DataGrid for WPF Popup & Grid

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #23664 |

    Hello,

    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?

    Thanks

    Imported from legacy forums. Posted by Murthy (had 418 views)

    User (Old forums)
    Member
    Post count: 23064

    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)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.