title: Stuck with two dimensional array
body: <p>I'm trying to create a booking service and I've been stuck on this part for many hours and I just can't figure out what I'm doing wrong. </p>
  
  <p>So I've got a Two Dimensional array and when trying to print out some stuff when testing and trying to figure out what's wrong, all I get is <code>System.String[]</code> which doesn't really make me any wiser. I want to be able to access the details in i.e. <code>m_nameMatrix[0,0]</code> to check whether the seat is reserved or not.</p>
  
  <p>Here's a snippet from my form code:</p>
  
  <pre><code>private void UpdateGUI(string customerName, double price)
  {
      string selectedItem = cmdDisplayOptions.Items[cmdDisplayOptions.SelectedIndex].ToString();
      rbtnReserve.Checked = true;
      lstSeats.Items.Clear();
      lstSeats.Items.AddRange(m_seatMngr.GetSeatInfoStrings(selectedItem));
  }
  </code></pre>
  
  <p>And here are two methods from my 2nd class:</p>
  
  <pre><code>public string[] GetSeatInfoStrings(string selectedItem)
  {
      int count = GetNumOfSeats(selectedItem);
  
      if (count &lt;= 0)
      {
          return new string[0];
      }
      string[] strSeatInfoStrings = new string[count];
  
      for (int index = 0; index &lt;= count; index++)
      {
          strSeatInfoStrings[index] = GetSeatInfoAt(index);
      }
      return strSeatInfoStrings;
  }
  
  public string GetSeatInfoAt(int index)
  {
      int row = (int)Math.Floor((double)(index / m_totNumOfCols));
      int col = index % m_totNumOfCols;
  
      string seatInfo = m_nameMatrix.GetValue(row, col).ToString();
      return seatInfo;
  }
  </code></pre>
  
  <p>I'm not actually getting an exception so it might be my logical thinking that's been taking a hit due to hours and hours of trying to figure it out.</p>
  
  <p>EDIT: </p>
  
  <pre><code>public void ReserveSeat(string name, double price, int index)
      {
          int row = (int)Math.Floor((double)(index / m_totNumOfCols));
          int col = index % m_totNumOfCols;
  
          string reserved = string.Format("{0,3} {1,3} {2, 8} {3, 8} {4,22:f2}",
                                          row + 1, col + 1, "Reserved", name, price);
  
          m_nameMatrix[row, col] = reserved;
      }
  </code></pre>