title: Get GridViewColumn Binding Path name from ListView?
body: <p>i Have xaml code</p>
  
  <pre><code>&lt;ListView Name="List1" Margin="0,33,0,0"
  
                  ScrollViewer.HorizontalScrollBarVisibility="Disabled"
                  ScrollViewer.VerticalScrollBarVisibility="Visible"
      ItemsSource="{Binding Path=Table}" MouseDoubleClick="List1_MouseDoubleClick"&gt;
  
          &lt;ListView.View&gt;
  
          &lt;GridView x:Name="_gridView" ColumnHeaderTemplate="{StaticResource BlueHeader}"&gt;
              &lt;GridViewColumn x:Name="LoyaltyCode"  Header="Code" DisplayMemberBinding="{Binding Path=LoyaltyCode}"/&gt;
              &lt;GridViewColumn x:Name="LoyaltyName" Header="Name" Width="130" DisplayMemberBinding="{Binding Path=LoyaltyName}" HeaderTemplate="{StaticResource BlueHeaderName}"/&gt;
              &lt;GridViewColumn Header="PurProductPonits" DisplayMemberBinding="{Binding Path=PurProductPonits}"/&gt;
              &lt;GridViewColumn Header="PurProductAmount" DisplayMemberBinding="{Binding Path=PurProductAmount}"/&gt;
              &lt;GridViewColumn x:Name="PurServicePonits" Header="PurServicePonits" DisplayMemberBinding="{Binding Path=PurServicePonits}"/&gt;
              &lt;GridViewColumn Header="PurServiceAmount" DisplayMemberBinding="{Binding Path=PurServiceAmount}"/&gt;
              &lt;GridViewColumn Header="RedeemPoints" DisplayMemberBinding="{Binding Path=RedeemPoints}"/&gt;
              &lt;GridViewColumn Header="RedeemAmount  " DisplayMemberBinding="{Binding Path=RedeemAmount}" /&gt;
  
              &lt;GridViewColumn Header="LoyaltyID" DisplayMemberBinding="{Binding Path=LoyaltyID}" Width="0"/&gt;
  
              &lt;GridView.ColumnHeaderContainerStyle&gt;
                  &lt;Style TargetType="{x:Type GridViewColumnHeader}"&gt;
                      &lt;Setter Property="IsEnabled" Value="False"/&gt;
                      &lt;Style.Triggers&gt;
                          &lt;Trigger Property="IsEnabled" Value="False"&gt;
                              &lt;Setter Property="TextElement.Foreground" Value="Black"/&gt;
                          &lt;/Trigger&gt;
                      &lt;/Style.Triggers&gt;
                  &lt;/Style&gt;
              &lt;/GridView.ColumnHeaderContainerStyle&gt;
          &lt;/GridView&gt;
      &lt;/ListView.View&gt;
  
  &lt;/ListView&gt;
  </code></pre>
  
  <p>And the code behind is</p>
  
  <pre><code>foreach (GridViewColumn column in _gridView.Columns)
  {
      if (column.Width == 0)
          continue;
  
      //ComboBoxItem item = new ComboBoxItem();
      // item.Content=column.Header;
      // item.Tag=column.???;
      // cmbSearch.Items.Add(item);
  
      cmbSearch.Items.Add(column.Header);
  }
  </code></pre>
  
  <p>I need to fill combo box's <strong>display item</strong> with column.Header and <strong>value item</strong> with the "DisplayMemberBinding Path   name"
  For example..
  item.Content=Code ,
  item.Tag=LoyaltyCode</p>