1. Břetislav Černík
  2. PowerBuilder
  3. Monday, 16 September 2024 07:48 AM UTC

Hi

I'd like set different colors of selected row for active and inactive datawindow.

Ie. I have 2 grid DW in the window.

First is active  - have focus and I preffer blue color of a selected's row.

Second is inactive and I preffer here gray color of the selected row.

How can I do this?

Best regards

 Břetislav Černík

Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 16 September 2024 12:30 PM UTC
  2. PowerBuilder
  3. # 1

Hi Břetislav;

  The SelectRow() command will only highlight a row in the MS-Windows default colour. So to break away from that default colour, I would suggest creating an SQL computed column (ie Boolean). Then in the clicked event set the CC to true where you want the selected row to occur. In the DWO,  use an IF() Expression to set the background colour based on the CC's True/False value. Food for thought  HTH 

Regards ... Chris 

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.