Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
The row you want to highlight in the grid is not necessarily the currently selected row?
* listbox interactivechange
do case
case this.value = "pcode"
for each loColumn in Thisform.grid.Columns
loColum.ResetToDefault("DynamicBackcolor")
endfor
Thisform.grid1.Column1.DynamicBackColor = RGB(240,240,0)
case this.value = "icode"
*...
case this.value = "rate"
*...
otherwise
*...
enddo
Textbox interactive change
do case
case Thisform.Listbox1.value = "pcode"
for each loColumn in Thisform.grid.Columns
loColum.ResetToDefault("DynamicForeColor")
endfor
Thisform.grid1.Column1.DynamicForeColor = "IIF(["+This.Value+"] $ pcode, RGB(255,0,0), RGB(0,0,0))"
case Thisform.Listbox1.value = "icode"
*...
case Thisform.Listbox1.value = "rate"
*...
otherwise
*...
enddo
cx_CurrentSet = DateTime()
* Assuming PCODE is field name and txt_PCode is the TextBox on the form where user enters the search string.
* Check for txt_PCode is not empty.
replace all SELECTED with cx_CurrentSet for at(alltrim(thisform.txt_PCode.value)) > 0
Thisform.grid1.Column1.DynamicBackColor = "IIF(SELECTED=cx_CurrentSet,RGB(240,100,100),RGB(240,240,240))"