Solved

C# VS 2005 DataGridView column width

Posted on 2006-06-13
1
524 Views
Last Modified: 2012-06-21
I am binding a select statements results which is stored into a Datatable to the DataGridView control.

The data is all there but I need to make it look better.

How do I get the Headers to autofill the entire width of the DataGridView and can I get rid of the column of boxes on the far left?
0
Comment
Question by:Rowdyone52
[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
1 Comment
 
LVL 12

Accepted Solution

by:
topdog770 earned 500 total points
ID: 16895360
<< How do I get the Headers to autofill the entire width of the DataGridView >>
The datagridview will have a collection of columns.   Each column has a AutoSizeMode property, setting this property to Fill will cause that specific column to fill in the 'blank' portion of the datagridview.

<< can I get rid of the column of boxes on the far left? >>

Setting your DataGridView('s).RowHeadersVisible = false will cause the column of boxes on the far left ( the row headers) to no longer show.
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

Suggested Solutions

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

734 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