title: WPF Loop with DataGrid Rows
body: <p>First: this is my code at the moment</p>
  
  <pre><code>    class Plan
      {
          public string Linie { get; set; }
          public string Kurs { get; set; }
          public string Abfahrt { get; set; }
          public string Von { get; set; }
          public string Nach { get; set; }
          public string Ankunft { get; set; }
          public string Pause { get; set; }
  
          public Plan(string Linie, string Kurs, string Abfahrt, string Von, string Nach, string Ankunft, string Pause)
          {
              this.Linie = Linie;
              this.Kurs = Kurs;
              this.Abfahrt = Abfahrt;
              this.Von = Von;
              this.Nach = Nach;
              this.Ankunft = Ankunft;
              this.Pause = Pause;
          }
  
      private System.Collections.ObjectModel.ObservableCollection&lt;Plan&gt; _items = new System.Collections.ObjectModel.ObservableCollection&lt;Plan&gt;();
      Plan.ItemsSource = _items;
  </code></pre>
  
  <p>So: I want a loop, that do something foreach row. So, as example: A loop that show a MessageBox, which contains each cell (I mean [as example] the Linie of the seleceted row an so on)</p>
  
  <p>I am happy about each answer!
  Thank a lot!</p>