Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
490
Grid with variable number of columns
posted

Hello,

I need to be able to support a grid which at design time will not have a set number of columns.  For example, the app will run, get some data from the server and create some objects.  Depending on the response from the server, I may have a different number of objects each time I run the app.

What do I need to do to be able to have my grid show the right number of columns and bind them to the right objects?  I am guessing this will need to be done in code since it cannot be done in XAML.

Can someone provide a simple exampe of this functionality please?

Thanks.

Parents Reply Children