title: using DataGridView(winForms) in wpf
body: <p>I am using datagridview (not datagrid) in my wpf application and i use this code to call it in my Window</p>
  
  <pre><code>&lt;Window x:Class="TestHosting.MainWindow"
      xmlns:wf="clr-namespace:System.Windows.Forms;assembly=System.Windows.Forms"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      Title="MainWindow" Height="440.132" Width="521.053"&gt;
  &lt;Grid&gt;
  
      &lt;WindowsFormsHost Margin="20,20,130,142"&gt;
          &lt;wf:DataGridView x:Name="dgv"&gt;
  
              &lt;wf:DataGridView.Columns&gt;
                  &lt;wf:DataGridViewColumn Name="column1" HeaderText="Col l" /&gt;
                  &lt;wf:DataGridViewColumn Name="column2" HeaderText="Col 2"/&gt;
                  &lt;wf:DataGridViewColumn Name="column3" HeaderText="Col 3"/&gt;
              &lt;/wf:DataGridView.Columns&gt;
  
          &lt;/wf:DataGridView&gt;
      &lt;/WindowsFormsHost&gt;
  </code></pre>
  
  <p>and the problem is that an error says that "At Least on of the datagridview controls' columns has no cell template."</p>
  
  <p>how should I fix this error ?</p>