Solved

Vb.net and access database field

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

760 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

20 Experts available now in Live!

Get 1:1 Help Now