General information
Category:
Forms & Form designer
>>>>I had the answer before but I lost it. How do you make a grid highlight the row with the current record when the grid doesn't have focus?
>>>Use DynamicBackColor for the columns.
>>>Alex.
>>Sorry to seem slow, but I need an expression. I have IIF(myexpression,RGB(255,255,255),RGB(0,255,0)). What can I put for myexpression? I tried THIS.Text1.Value=myfield, but it didn't like it.
>
>You can use a "dummy" record number;
>
>nRec = recno('etc...')
>IIF(recno('etc...') =nRec,...
>
>Note: nRec must have a wide scope.
We're getting closer, I think. I made a form property gridcurrec, which I hope might have wide scope. My expression in .DynamicBackColor is recno()=THISFORM.gridcurrec. Somewhere, I need to put THISFORM.gridcurrec = recno('gridalias'). Grids don't have a .lostfocus event, and I think the controls inside the grid will think all RECNO()s in the grid are RECNO(), if you know what I mean.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only