?
Solved

Vb.net and access database field

Posted on 2015-01-22
3
Medium Priority
?
135 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Suggested Courses

718 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