Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Wednesday, November 8, 2006 12:29 AM
I have a DataGridView. It has two columns (0, 1). Column 1 is a ComboBox Column. How do I add items to the comboboxes in that column. I cannot find a method anywhere that will do this.
Thank you,
Troy L
Wednesday, January 31, 2007 2:12 PM ✅Answered | 1 vote
dim cboCol1 as dataGridViewComboBoxColumn
cbocol1=datagridview1.colums.item(0)
cbocol1.items.add("Item1")
cbocol1.items.add("Item2")
Wednesday, November 8, 2006 10:26 AM
get a reference to the column and use Items.Add() or DataSource property.
Wednesday, November 8, 2006 10:31 AM
For instance:
Column1.DataSource = New String() {"item1", "item2", "item3"}