title: Header Check Box in DataGridView
body: <p>can anyone show me an example on how to add header check box in a datagridview with powershell? I am searching on the web with similar example but i can find one. I am trying to create a select all checkbox 
  Your help is very much appreciated. Thanks.</p>
  
  <pre><code>$form = New-Object system.Windows.Forms.Form
  $dataGrid1 = New-Object System.Windows.Forms.DataGridView
  $dataGrid1.Location = New-Object Drawing.Point 20,90
  $dataGrid1.size = New-Object Drawing.Point 260,200
  $dataGrid1.MultiSelect = $false
  $dataGrid1.ColumnHeadersVisible = $true
  $dataGrid1.RowHeadersVisible = $false
  $datagridviewcheckboxcolumn1 = New-Object 'System.Windows.Forms.DataGridViewCheckBoxColumn'
  
  $dataGrid1.Columns.Add($datagridviewcheckboxcolumn1) | Out-Null
  $form.Controls.Add($dataGrid1)
  
  $form.ShowDialog()
  </code></pre>