title: How to remove selected row from datagrid which is bind to a List?
body: <p>i have a list that is binded to a datagrid.
  xml datagrid code is:</p>
  
  <pre><code>&lt;DataGrid x:Name="Mydg" Margin="5" CanUserAddRows="False" IsReadOnly="True" AutoGenerateColumns="False"&gt;
        &lt;DataGrid.Columns&gt;
              &lt;DataGridTextColumn Header="Host IP" Binding="{Binding Ip}"&gt;&lt;/DataGridTextColumn&gt;
              &lt;DataGridTextColumn Header="Host Name" Binding="{Binding Name}"&gt;&lt;/DataGridTextColumn&gt;
              &lt;DataGridTextColumn Header="Port" Binding="{Binding Port}"&gt;&lt;/DataGridTextColumn&gt;
              &lt;DataGridTemplateColumn&gt;
                 &lt;DataGridTemplateColumn.CellTemplate&gt;
                    &lt;DataTemplate&gt;
                         &lt;TextBlock&gt;
                              &lt;Hyperlink Name="hlRmv" Click="HlRmv_OnClick"&gt;Remove&lt;/Hyperlink&gt;
                         &lt;/TextBlock&gt;
                    &lt;/DataTemplate&gt;
                 &lt;/DataGridTemplateColumn.CellTemplate&gt;
              &lt;/DataGridTemplateColumn&gt;
       &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>
  
  <p>c#:</p>
  
  <pre><code>...
  Mydg.ItemsSource=psList;
  ...
  </code></pre>
  
  <p>in the "HlRmv_OnClick" how can i remove clicked row?</p>