Post subject: Dropdown Box in DataGridView
Editor
Joined: 3/31/2010
Posts: 1466
Location: Not playing Puyo Tetris
I have a VB.Net DataGridView that I am creating and filling during load time. My problem is that I want a drop down list for one of my columns. How would I go about this? How I am Creating the grid: Download vb.net
Language: net

dgvWeapons.Columns.Add("col1", "Weapon Name") dgvWeapons.Columns.Add("col2", "Hand") dgvWeapons.Columns.Add("col3", "Type") dgvWeapons.Columns.Add("col4", "Size") dgvWeapons.Columns.Add("col5", "Damage Type") dgvWeapons.Columns.Add("col6", "Size") dgvWeapons.Columns.Add("col7", "Critical") dgvWeapons.Columns.Add("col8", "Reach")
How I add to the DataGridView: Download vb.net
Language: net

dgvWeapons.Rows.Add(WeaponsName, WeaponsHand, WeaponsDamageType, WeaponsSize, WeaponsCritical, WeaponsReach, WeaponsDamage, WeaponsSpecial)
I want "Type" to become a ComboBox Cell type. It will have two options, "Melee" and "Ranged"
When TAS does Quake 1, SDA will declare war. The Prince doth arrive he doth please.