Добавяне на падащото меню по контролът datagridview vb.net

Примерен код

1
0

добавяне на падащото меню по контролът datagridview vb.net

'To work as expected, set DataGridView AutoGenerateColumns to False
'end set all columns using your code, after DataGridView datasource property

Dim cmb As New DataGridViewComboBoxColumn()
cmb.HeaderText = "Options"
cmb.Name = "Col"
cmb.MaxDropDownItems = 2 'if needed
cmb.Items.Add("option 1")
cmb.Items.Add("option 2")

DataGridView1.Columns.Add(cmb)

Подобни страници

Подобни страници с примери

На други езици

Тази страница на други езици

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Íslensk
..................................................................................................................