datagridview cell alignment...vb.net

Question: How can I make .Columns(3) to be center justified?

            With Me.OrderDGV
                .Columns(3).Width = 65
                .Columns(4).DefaultCellStyle = currencyCellStyle
                '.Columns(5).Visible = False
                '.Columns(6).Visible = False
            End With

Open in new window

LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Jacques Bourgeois (James Burger)Connect With a Mentor PresidentCommented:
.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
0
 
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
As usual, another good solution from James.
0
All Courses

From novice to tech pro — start learning today.