With This .lSw=Not .lSw return .lSw EndWith*ThisForm.YourGrid.Init - for a chess pattern
This.SetAll("DynamicBackColor", "iif(ThisForm.ChangeSw(),"+lcColor1+","+lcColor2+")", "Column")*ThisForm.YourGrid.Init - for a jail pattern
For each col in This.Columns col.DynamicBackColor=iif(mod(col.ColumnOrder,2)=0, ; "iif(ThisForm.ChangeSw(),"+lcColor1+","+lcColor2+")", ; "iif(Not ThisForm.ChangeSw(),"+lcColor1+","+lcColor2+")") EndForI leave the rest to you. Do not forget to instantiate lcColor1 and lcColor2.