Solved

Vb.net and access database field

Posted on 2015-01-22
3
129 Views
Last Modified: 2015-01-22
I have a program where i call fields from my access database to a datagridview.  How do i set the width of the fields on the datagridview?

 sSql = "SELECT ID as [Record #], Status, AppOwner, Application, Request, IntakePortalLink, Notes FROM PackagingRequests"
        

Open in new window

0
Comment
Question by:derek7467
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 13

Accepted Solution

by:
Jesus Rodriguez earned 500 total points
ID: 40564588
Datagridview.Columns(Column_Index).Width=Integer_Number_of_Pixels

like this in your case
Datagridview.Columns(0).Width=60
Datagridview.Columns(1).Width=60
Datagridview.Columns(2).Width=120
0
 

Author Closing Comment

by:derek7467
ID: 40564602
worked perfect.  thank you!
0
 
LVL 13

Expert Comment

by:Jesus Rodriguez
ID: 40564617
Always welcome
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

752 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