How to Change the Color of the Active Cell in a GridLast reviewed: April 30, 1996Article ID: Q129280 |
The information in this article applies to:
SUMMARYThe Grid control is more flexible than the BROWSE command. A Grid contains columns that in turn contain controls, it is possible to manipulate data at the control, or cell, level. The example provided in this article shows how to modify the color of an active cell when you access it with the keyboard or the mouse.
MORE INFORMATIONYou can add any control to the column of a grid, and can access its properties, events, and methods. The ACTIVECONTROL property returns the name of the control displayed in a column, and by default, a column of a grid contains a text box with the name Text1.
Step-by-Step ExampleThis example provides a generic way to control the background color of the active control for any column in the Grid by using the Form Designer. It changes the value of the BACKCOLOR and SELECTEDBACKCOLOR properties.:
|
Additional reference words: 3.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |