Solved

Vb.net and access database field

Posted on 2015-01-22
3
132 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

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

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

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.
Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
Suggested Courses

615 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