with this.grid1 with .Column2 .DynamicCurrentControl = 'iif( i1 = 1, "cnt1", iif( i1 = 2, "cnt2", iif( i1 = 3, "cnt3", "cnt4" ) ) )' .Sparse = .t. endwith endwith