>>>myform.mygrid.column1.Sparse=.f. >>>myform.mygrid.column1.text1.Century = 0 >>>>>
>** Add a property pnRecord to your form and initilize it with 0 >myform.mygrid.column1.Sparse=.f. >myform.mygrid.column1.text1.Century = 0 >myform.mygrid.column1.text1.BackStyle = 0 >myform.mygrid.column1.DynamicBackColor="=iif(recno(this.RecordSource)=thisform.pnRecord,this.HighlightBackColor,this.BackColor)" > >** AfterRowColChange event >thisform.pnRecord=recno(this.RecordSource) >IF m.nColIndex = 1 ; && 1 is the column1 >THEN > this.column1.text1.BackStyle = 1 >ELSE > this.column1.text1.BackStyle = 0 >ENDIF >this.refresh() >Dawa,
this.nBackColor = this.BackColor this.nForeColor = this.ForeColor this.BackColor = this.Parent.Parent.HighlightBackColor this.ForeColor = this.Parent.Parent.HighlightForeColorand restore them back in LostFocus. Seems to work nicely.