title: How to add ColumnHeaders in datagrid with combobox?
body: <p>As said on the title, I need help with creating columnHeaders programmatically, and same goes to rows. I want a dynamic datagrid, with comboboxes on every item and all the columnHeaders based on 2 tables, one for the columns, and the other one for the rows.</p>
  
  <p>Example</p>
  
  <pre><code>    Dim cmbHeaderCell1 As New ComboBox
      cmbHeaderCell1.DropDownStyle = ComboBoxStyle.DropDownList
      cmbHeaderCell1.Visible = True
      cmbHeaderCell1.Items.Clear()
      cmbHeaderCell1.Items.Add("India")
      cmbHeaderCell1.Items.Add("China")
      DGrdVLoadStb.Columns(1).Width = cmbHeaderCell1.Width
  
      'Dim X As Integer = DGrdVLoadStb.GetCellDisplayRectangle(1, -1, False).Location.X
      'Dim Y As Integer = DGrdVLoadStb.GetCellDisplayRectangle(1, -1, True).Location.Y
      cmbHeaderCell1.Location = New Point(datagridview1.Columns(0).Width + 2, 2)
      cmbHeaderCell1.Size = DGrdVLoadStb.Columns(1).HeaderCell.Size
      cmbHeaderCellStressRate.DropDownStyle = ComboBoxStyle.DropDownList
      DGrdVLoadStb.Controls.Add(cmbHeaderCell1)
      cmbHeaderCell1.SelectedIndex = 0
  </code></pre>