Solved

datagridview header color

Posted on 2007-04-09
3
479 Views
Last Modified: 2013-12-17
I want an absolutely white datagridview with no lines, or headers.  I can set the header color to white, but it still shows as the control color.  I would like to do this via the properties instead of programmatically.

Win forms vb vs 2550
0
Comment
Question by:jackjohnson44
[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 27

Accepted Solution

by:
VBRocks earned 500 total points
ID: 18879885
In the properties pane for the DataGridView:
     Set ColumnHeadersVisible to False
     Set BackgroundColor to Window
     Set GridColor to Window

You can also set the following properties:
     Set RowHeadersVisible to False
     Set SelectionMode to FullRowSelect    'If you want the whole row to be selected when clicked on.

Hope that helps.
0
 

Author Comment

by:jackjohnson44
ID: 18884167
thanks, but I want the header visible because I need the header text.  I just want it to be white and not look like a header.
0
 

Author Comment

by:jackjohnson44
ID: 18884407
Figured it out

EnableHeadersVisualStyles was set to true.  Apparently this uses the users computer settings instead of yours.

Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Update (December 2011): Since this article was published, the things have changed for good for Android native developers. The Sequoyah Project (http://www.eclipse.org/sequoyah/) automates most of the tasks discussed in this article. You can even fin…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

739 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