Solved

How to set DataGrid window color

Posted on 2002-07-04
1
296 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
1 Comment
 
LVL 4

Accepted Solution

by:
TomLaw1999 earned 75 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

Industry Leaders: 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

Suggested Solutions

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
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 utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

679 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