GRID Header Color ?

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

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

GRID Header Color ?

Post by AUGE_OHR »

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: 2559
Joined: Sun Nov 25, 2012 2:44 pm
DBs Used: 1 MySQL - MariaDB
2 DBF
Location: Belgium
Has thanked: 849 times
Been thanked: 160 times
Contact:

Post by serge_girard »

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