this.SetAll("DynamicBackColor", ; "iif(recno(this.recordsource) = this.nCurRec or " +; "this.activecolumn > 0 and this.columns(this.activecolumn).controlsource "+; "= lower(this.recordsource+'.'+varread()), 256^2-1,256^3-1)","Column")Puts a "crosshair" highlight (highlights both row and col of current cell).
for each oColumn in ThisForm.Grid1.columns oColumn.DynamicBackColor = "GimmeColor("+oColumn.Controlsource+")" endfor ThisForm.Grid1.refreshThis is indiviual setting. Your gimmecolor() method would decide color based on controlsource. Since Dynamic* is evaluated for all visible cells after each grid.refresh you could base your colors on controlsource values easily (ie: 12 different colors for date values depending on month).