?
Solved

How to set DataGrid window color

Posted on 2002-07-04
1
Medium Priority
?
314 Views
Last Modified: 2006-11-17
Does anyone know how to set the window background color of a datagrid control?  This is the color of the area between the control border and the grid of cells.  DataGrid1.BackColor sets the background color of the cells and not of this area.  Please provide code if you can.

I suspect

 SendMessage(DataGrid1.hWnd, theMessageID, 0, theCOLOREFColor)

along with OleTranslateColor() to convert the VB color to RGB is the way to do it but I don't know theMessageID to change the window color.

Actually I would like to set the background color to that of the content area of an MDI child window.
0
Comment
Question by:ASP_Ray
[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 4

Accepted Solution

by:
TomLaw1999 earned 225 total points
ID: 7132576
I believe that the correct answer is that you can't. The datagrid supplied with visual basic is really a stripped down version of a commercially available grid and many of the functions are not available.

There are several commercial options available i.e Truegrid etc. and I am sure that one of these would serve your purpose.
0

Featured Post

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

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

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Suggested Courses
Course of the Month14 days, 14 hours left to enroll

770 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