cutiegigshorty


hello. U i want to know if it possible to highlight a grid with the use of combo box. Sample, you choose January in the combo box, after choosing January, all the month of january in the grid will be highlighted. Can it be possible thanks.


Re: how to highlight a grid via combo box..

chanmy8


Hi,
You can try something like this

thisform.grid1.SetAll("dynamicbackcolor", "IIF(myAlias.nMonth = THISFORM.cboMonth.Value, RGB(0,0,255), RGB(255,255,255))","column")





Re: how to highlight a grid via combo box..

MarciaAkins

Sample, you choose January in the combo box, after choosing January, all the month of january in the grid will be highlighted. Can it be possible

What is it that you are trying to accomplish here Do you actually want to navigate to the first record in the grid where the date is January Is the grid's RecordSource in Order by date

If your purpose is to Navigate, You will need some code in the Valid of the combobox similar to nativate to the correct Record.