how to add grid to control in wpf

Posted on 2011-10-09
Last Modified: 2013-11-12
I would loke to add grid in wpf to a control like panel or view or grid. as I create the grid dynamically and I want the grid to added to specific control so I would have space in the window to other control.
Question by:dpatel_team
    LVL 16

    Expert Comment

    by:Easwaran Paramasivam

    Author Comment

    Let me rephrase- I would like to know which control can have grid as a child
    LVL 16

    Expert Comment

    by:Easwaran Paramasivam
    Even grid can be used as container. Please do check the link for other containers.
    LVL 8

    Accepted Solution

    Any of the available container controls like Grid, StackPanel, WrapPanel, DockPanel, etc. can have other controls as their children. You can host your dynamically created grid in a cell of another grid or in a stackpanel or some other container. Which container control to choose depends on your screen layout requirement.

    If you choose to add your dynamically created grid into some cell of another grid then other controls can be placed in remaining cells of the container grid.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now