?
Solved

C# VS 2005 DataGridView column width

Posted on 2006-06-13
1
Medium Priority
?
529 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 2000 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

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

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.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

777 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