Solved

datagridview cell alignment...vb.net

Posted on 2014-10-27
2
366 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
ID: 40407219
.Columns(3).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
0
 
LVL 33

Author Closing Comment

by:Mike Eghtebas
ID: 40407713
As usual, another good solution from James.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
SQL Help 27 45
Write to a printer using vb.net 9 30
Sending receiving text messages in vb.net 15 38
Winforms -- Capture CTRL+SHIFT+D at the form not working? 3 22
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

803 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