Solved

datagridview cell alignment...vb.net

Posted on 2014-10-27
2
355 Views
Last Modified: 2014-10-27
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
Comment
Question by:Mike Eghtebas
2 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
Comment Utility
.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
0
 
LVL 33

Author Closing Comment

by:Mike Eghtebas
Comment Utility
As usual, another good solution from James.
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now