Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Color/Border of Grid field in Focus

Status
Not open for further replies.

wsobers

IS-IT--Management
Dec 2, 2000
43
BB
I have a grid where the current row is highlighted using the column dynamicBackColor property.
The current field always has a border around it, and has a different Fore and Background color.
What can I do to make the current field match the other fields in the same row?

TIA

Wayne Sobers
 
Hi Wayne,

I think you can get the effect you want with the SelectedBackColor and SelectedForeColor properties.

Jim
 
I had tried setting those properties to no avail.
What I have managed to do is make the colums readonly and disable the text box control for the column. This keeps the color of the selected field the same as the other colums, but there is still the border around the selected field.

Thanks for the response.

Wayne
 
Set the colors you want in the GotFocus and LostFocus of the textbox in the column.

What you're seeing is the textbox that's in each column is only actually visible when it has focus. It's because the column's Sparse is .T. It's the same effect you get when you don't have Spare set to .F. for a column with a checkbox, but in that case it's more obvious.



-BP
 
Thanks for the reply. I endded up changing the Text box border color to get what I wanted.

Wayne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top