title: WPF Binding SelectedItem in DataGrid
body: <p>So, I have a TabControl binded to a list of projects (each tab is a one project) - that works fine. The content of each tab is a DataGrid with a list of project's employees - that works fine as well. Now, I want to show some information on employee currently selected on DataGrid. Here's some code:
  MainWindow.xaml file:</p>
  
  <pre><code>&lt;Window.Resources&gt;
      &lt;DataTemplate x:Key="ItemTemplate"&gt;
          &lt;TextBlock Text="{Binding Name}" /&gt;
      &lt;/DataTemplate&gt;
  
      &lt;DataTemplate x:Key="ContentTemplate"&gt;
          &lt;DataGrid ItemsSource="{Binding Employees}" SelectedItem="{Binding SelectedEmployee,  Mode=TwoWay}"  SelectionMode="Extended" SelectionUnit="FullRow" Name="employeesList"&gt;
  
          &lt;/DataGrid&gt;
  
      &lt;/DataTemplate&gt;
  &lt;/Window.Resources&gt;
  </code></pre>
  
  <p>and later, I want to test this binding by simply writing it in label:</p>
  
  <pre><code>&lt;Label Name="emp" Content="{Binding SelectedEmployee}"&gt;&lt;/Label&gt;
  </code></pre>
  
  <p>and MainWindowViewModel:</p>
  
  <pre><code>        public Employee SelectedEmployee { get { return selectedEmployee; }
          set
          {
              if (selectedEmployee != value)
              {
                  selectedEmployee = value;
                  NotifyPropertyChanged("SelectedEmployee");
              }
          }
      }
  
      public event PropertyChangedEventHandler PropertyChanged;
      private void NotifyPropertyChanged(String info)
      {
          if (PropertyChanged != null)
          {
              PropertyChanged(this, new PropertyChangedEventArgs(info));
          }
      }
  </code></pre>
  
  <p>I am kind of a newbie to WPF, I've read some tips but they don't help. The label 'emp' does not show anything. What am I missing?</p>