Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 400
  • Last Modified:

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

0
Mike Eghtebas
Asked:
Mike Eghtebas
1 Solution
 
Jacques Bourgeois (James Burger)Commented:
.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
0
 
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
As usual, another good solution from James.
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now