Solved

datagridview header color

Posted on 2007-04-09
3
478 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
  • 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

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
The viewer will learn how to synchronize PHP projects with a remote server in NetBeans IDE 8.0 for Windows.

828 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