title: WPF datagrid not showing data
body: <p>I have a datagrid:</p>
  
  <pre><code>&lt;DataGrid Name="messageGrid"&gt;           
          &lt;DataGridTextColumn Header="Revision" Binding="{Binding Message.Revision}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Opcode" Binding="{Binding Message.Opcode}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Reason" Binding="{Binding Message.Reason}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Reaction" Binding="{Binding Message.Reaction}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Projects" Binding="{Binding Message.Projects}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Links" Binding="{Binding Message.Links}"&gt;&lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="Notes" Binding="{Binding Message.Notes}"&gt;&lt;/DataGridTextColumn&gt;       
      &lt;/DataGrid&gt;
  </code></pre>
  
  <p>On the preview I don't see the columns that I wanted to see (Revision, Opcode, etc.) and when I run the program i don't have any columns or data inside, why is that happening? </p>
  
  <p>P.s 
  I have data inside Message.Revision and so on i checked that</p>
  
  <p><strong>EDIT</strong>:</p>
  
  <p>the view model where i have the Message property that i use as items source:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Collections.ObjectModel;
  using System.Windows.Input;
  using YogevAfekaRAPAT.YNIDS.Helpers;
  using System.Diagnostics;
  using System.Data;
  
  namespace YogevAfekaRAPAT.YNIDS.ViewModels
  {
  public class MessageDetailsViewModel : NotificationObject
  {
      #region Private Data Members
  
  
      private Model.Message message;
  
  
      private ObservableCollection&lt;Model.MType&gt; types;
  
      //private FileManager.fileManager fileManager;
  
      private Logger.Logger logger;
      #endregion
  
  
      #region Properties
  
      #region Types
      private ObservableCollection&lt;Model.MType&gt; _types;
      public ObservableCollection&lt;Model.MType&gt; Types
      {
          get { return _types; }
          set
          {
              if (_types != value)
              {
                  _types = value;
              }
          }
      }
      #endregion
  
      #region Message
  
      public Model.Message Message
      {
          get
          {
              return message;
          }
          set
          {
              if (message == value)
              {
                  return;
              }
  
              message = value;
              RaisePropertyChanged(() =&gt; Message);
          }
      }
      #endregion
  
  
      #endregion
  
  
      #region Ctor
      public MessageDetailsViewModel(Model.Network network, String messageName)
      {
          fileManager = FileManager.fileManager.getFileManager();
          //Message = network
          Message = network.getMessageFromName(messageName);
          Debug.WriteLine("Inside: public MessageDetailsViewModel(Model.Network network, String messageName) messageName = " + messageName + " Message.Desc = " + Message.Opcode);
  
      }
      #endregion
  
  }
  </code></pre>
  
  <p>}</p>