Solved

Vb.net and access database field

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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…
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…

910 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

23 Experts available now in Live!

Get 1:1 Help Now