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!

Changing combobox style in grid

Status
Not open for further replies.

ezpzjohn

Programmer
Jun 29, 2001
50
GB
Hi

I have a grid with 2 comboboxes in it.

Combo2 has its RowSource rebuilt depending on the value entered in Combo1.

If the user enters a value in Combo1 the RowSource of Combo2 is a subset of all possible values that relate to the value entered. There must be a value selected in Combo2 so the Style property is set to 2 (Dropdown List).

If the user leaves Combo1 with a blank value then the RowSource of Combo2 is the full set of values. It must also be possible in this case for the value in Combo2 to be blank so the style is set to 0 (Dropdown combo).

I have everything working but one thing. When I programmatically change the Style property for Combo2 to 0 (Dropdown combo) I lose the vertical flashing line cursor from the text area of the combo. Everything else is OK, I can enter the data and everything, I just can't figure out how to get that cursor back!

Any help greatly appreciated.

John.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top