Good day) How to add a combobox to a datagrid view? And can combobox fill out of the structure?

  • I think it is worth pointing out that you are using ... I suppose .net - Dmitry Chistik
  • sorry C ++ / CLI Windows Forms - Pablo Murena
  • I am trying so DataGridViewComboBoxColumn ^ comboboxColumn = gcnew DataGridViewComboBoxColumn; dataGridView1-> Rows-> Add (comboboxColumn); - Pablo Murena

1 answer 1

Figured out

DataGridViewComboBoxCell^ bautRate = gcnew DataGridViewComboBoxCell; bautRate->Items->Add("9600"); dataGridView1->Rows[0]->Cells[1] = bautRate;