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
340
Can I input a 2D string array into a grid?
posted

I want a easy way to input a 2D string array(string[ , ]) in  a grid. And then set the column header.

Is it possible?

  • 2515
    Offline posted

    I see it's too late for a reply, but a lot of people are looking at this post, so I'll attach the workaround I found.

    Basically the solution is to generate dynamic class and to insert the data from the array in new list. Then you just have to bind it.

    The attached project is for WinForms, but the same idea will work for SL and WPF.

    Best,
    George

    TwoDimensionalArrayToGrid.zip