Data Access Worldwide Knowledge Base
Article ID 2131 Article Title HOWTO: Set Grid Header to a Different color Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2131 KBase Category VDF (GENERAL) Date Created 06/01/2005 Last Edit Date 06/23/2005
Article Text
QUESTION:
I would like to change the color of the header of a Grid. I couldn't find any property to do this. Is it possible?
ANSWER:
There is no prperty for that. If you are happy to have a fixed size display, you could place a bitmap on the header by using a Bitmapcontainer.
In the dbGrid:
Set Header_Visible_State to False //Turn off the header when in run-time
//The bitmap would sit above the current header.
If you need to set the text color of the text in the column header of a Grid to different colors, you can switch the headers off and use text objects instead.
Contributed By:
Peter Brooks
Company: Data Resource and Management Systems Pty
email: phbrooks@ozemail.com.au
Web Site: http://www.membershipadmin.com
Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.
The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.