title: How to pass GridView as a ConverterParameter
body: <p>I am trying to pass the ListView or the GridView as a ConverterParameter
  However, in the Converter routine the parameter is coming as a type string</p>
  
  <p>Below is the part of the XAML List view and the Converter class.</p>
  
  <p>Any help greatly appreciated. Thanks!!! </p>
  
  <pre><code>    &lt;ListView Name="SeqDtStDataListView1" Grid.Row="1" 
          DataContext="{Binding Path=DisplayDT[0], Converter ={StaticResource      
                                                         CNVToColumn},ConverterParameter=?????}"
          VerticalContentAlignment="Stretch" VerticalAlignment="Stretch"
                                                         HorizontalAlignment="Stretch"
          SelectionChanged="SEQDatalistview_SelectionChanged"  Margin="5"&gt; 
  
  
         &lt;ListView.View &gt;
               &lt;GridView x:Name="SeqDtStDataGridView1"/&gt;
         &lt;/ListView.View&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>Converter:</p>
  
  <pre><code>namespace MFTest.Converters
  {
  public class CNVToColumn : IValueConverter
  {
  
      public object Convert(object value,
                            Type targetType, 
                            object parameter,
                            System.Globalization.CultureInfo culture)
      {
          DataTable dt = (DataTable)value;
          GridView GV = (GridView)parameter;                &lt;========= fail here ===========
          if (dt != null &amp;&amp; GV != null)
            foreach (var colum in dt.Columns)               // Binding the Columns
            {
                  DataColumn dc = (DataColumn)colum;
                  GridViewColumn column = new GridViewColumn();
                  column.DisplayMemberBinding = new Binding(dc.ColumnName);
                  column.Header = dc.ColumnName;
                  GV.Columns.Add(column);
            } 
          return null;
      }
  
      public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
      {
          throw new NotImplementedException();
      }
  
  }
  }
  </code></pre>