Add Combobox column to datagridview using vb.net

I have a winform that has a datagridview  and i am formatting the layout of the grid using using the following vb.net code.   I would like to have column 2 in the grid be a combobox column.   How can i change column from a textbox to a combobox using my existing code.

With Me.Datagridview1

             .AllowUserToAddRows = True
            .AllowUserToDeleteRows = True
            .AllowUserToOrderColumns = False
            .AllowUserToResizeColumns = False
            .AllowUserToResizeRows = False
            .AutoGenerateColumns = False

            .Columns(1).Width = 175
            .Columns(1).DataPropertyName = "Car_Color"
            .Columns(1).HeaderText = "Car Color"
            .Columns(1).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
            .Columns(1).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft

             .Columns(2).Width = 175
            .Columns(2.DataPropertyName = "Interior_Color"
            .Columns(2).HeaderText = "Interior Color"
            .Columns(2).HeaderCell.Style.Alignment = DataGridViewContentAlignment.MiddleCenter
            .Columns(2.DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleLeft

End With
Mike_StevensAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
try add:

Dim chkbox As New DataGridViewCheckBoxColumn

  With chkbox
    .HeaderText = "Header"
    .Name = "chkName"
    .Width = 60
  End With
.Columns.Insert(2, chkbox)

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mike_StevensAuthor Commented:
Thanks Ryan...thats exactly what i was looking for.

Thank you!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
DataGridView

From novice to tech pro — start learning today.