GRID Header Color ?

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
AUGE_OHR
Posts: 444
Joined: Sun Aug 25, 2019 3:12 pm
DBs Used: DBF, PostgreSQL, MySQL, SQLite
Location: Hamburg, Germany
Has thanked: 48 times
Been thanked: 92 times

GRID Header Color ?

Post by AUGE_OHR » Fri Jan 10, 2020 6:31 am

hi,

how can i change GRID Header Color :?:

i found out

Code: Select all

Form_1.Grid_1.HeaderDYNAMICFORECOLOR( nCol ) := {|| aFColor[1] }
Form_1.Grid_1.HeaderDYNAMICBACKCOLOR( nCol ) := {|| aFColor[2] }
but BackColor does not work :(
have fun
Jimmy

User avatar
serge_girard
Posts: 2385
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 658 times
Been thanked: 127 times
Contact:

Post by serge_girard » Fri Jan 10, 2020 9:03 am

Jimmy,

Code: Select all

   FOR a = 6 to 9 // free
      SetProperty( 'Form_1','Grid_DRIVES',"ColumnDYNAMICFORECOLOR", a, {|| {255,0,255} } )  
      SetProperty( 'Form_1','Grid_DRIVES',"HeaderDYNAMICBACKCOLOR", a, {|| {255,0,255} } )
   NEXT 

   FOR a = 2 to 3  // total
      SetProperty( 'Form_1','Grid_DRIVES',"ColumnDYNAMICFORECOLOR", a, {|| {0,255,0} } )   
      SetProperty( 'Form_1','Grid_DRIVES',"HeaderDYNAMICBACKCOLOR", a, {|| {0,255,0} } )
   NEXT 
Maybe this works for you?

Serge

Post Reply