Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

datagridview header color

Posted on 2007-04-09
3
Medium Priority
?
492 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 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

722 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