Resolved Add a combobox in DataGridView row?

Ksilenio

Member
Joined
Jan 7, 2021
Messages
9
Programming Experience
3-5
Hi to everyone.I have a question . Is possible to add a combobox in a row of a DataGridView but not in all rows but by choice?
If yes how can i do it?
Thank you for your time
Regards Kostas
 
Solution
You can assign a cell of any type at any location within the grid at which a cell already exists, e.g.
VB.NET:
Dim cell As New DataGridViewComboBoxCell

'Configure cell here'

DataGridView1(columnIndex, rowIndex) = cell

jmcilhinney

VB.NET Forum Moderator
Staff member
Joined
Aug 17, 2004
Messages
14,376
Location
Sydney, Australia
Programming Experience
10+
You can assign a cell of any type at any location within the grid at which a cell already exists, e.g.
VB.NET:
Dim cell As New DataGridViewComboBoxCell

'Configure cell here'

DataGridView1(columnIndex, rowIndex) = cell
 
Solution
Top Bottom