How to populate two dimensional array

38 views Asked by At

I'm trying to populate a 2D array of objects and get a result like this example:

Guid guid = Guid.NewGuid();
var data = new[] {
    new object[] { 22, "cust1_fname","cust1_lname",guid },
    new object[] { 23, "cust2_fname","cust2_lname",guid },
    new object[] { 24, "cust3_fname","cust3_lname",guid },
};

enter image description here

I tried this way:

enter image description here

But the objects are not added as direct children under the 2D array as in the first example

0

There are 0 answers