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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Combo-Boxes and Grids

Status
Not open for further replies.

Goofus828

Programmer
Nov 9, 2005
127
US

I have 3 combo-boxes in a grid of 21 columns.

The highlighted row of the grid is black text on a light blue background. The other rows are black text on a pale yellow back ground.

the combo-boxes are, when not highlighted, black on yellow which is good.

However the highlighted row, the combo-boxes are still black on yellow not the black on light blue like the rest of the columns.

I cannot seem to find the right setting to make the highlighted row’s combo box to be black on light blue!

if have also tried DynamicBackcolor for the Comboboxes but that just makes the whole column the highlighted color until i refresh the row then it works.

Is it possible?
Thanks in advance!
 
I'm not sure, but I would play with the background property of the individual combo boxes - set them to transparent.

You will need to look at the column 'sparce' property too.

Make sure the combo is the current or only control in the column as well.


Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
ComboBoxes have Transparent background properties?
 
Nope you are right, you have to set the 'selecteditem' properties!

There are foreground and background settings there

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.
 
Try to use the dynamicforecolor and dynamicbackground properties.
 
I tried the DynamicForeColor and Dynamicbackgroundcolor with an IIF(). if recno() = Thisform.nRecno then make it liteblue otherwise yellow, and what happens is that whole column is colored in the highlighted color that I want which is gross looking.

I think i tried the selected colors but I've tried so many combinations i'll try them again.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top