Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Prof-UIS Tech Support » Grid color Collapse All
Subject Author Date
Tor Erik Ottinsen Sep 23, 2005 - 7:45 AM

Is it possible to change the color of the grid lines in a grid ?

Technical Support Sep 24, 2005 - 12:33 PM

Create a CExtGridWnd-derived class and override the OnGbwQueryCellGridLines() virtual method. Your method should simply return false. This removes default grid lines from the grid window. You also need to override the OnGbwPaintCell() virtual method in which you need to invoke the parent’s method and then draw your custom grid lines using the rcCell parameter as cell margins.