[Solved] Create table using two dimensional array


Have you tried looking at ListViewItem and then populating a list view?

If not then you can easily use a list of arrays, or even populate it in a foreach loop like bellow?

foreach( var v in Muvees )
{ListViewItem movieToAdd = new ListViewItem();
 movieToAdd.Text = v.movieid; 
movieToAdd.SubItems.Add(v.rating); 
movieToAdd.SubItems.Add(v.movieName); 
listOfMovies.Items.Add( movieToAdd ).BackColor = Color.Green;}    //add colour just because you can

arrange subItems however your list is set out

then in the form just right click your List View in the form(listOfMovies) and add columns

Sorry if I’ve misunderstood the question but i think this is what you needed?

solved Create table using two dimensional array