thisrecord= recno() select PXENTRYCODES replace all PXENTRYCODES.lSELECTED with .f. goto thisrecord replace PXENTRYCODES.lSELECTED with .t. thisform.refreshwhen you click with mouse on a row it will be selected
thisform.grid1.setall( "dynamicbackcolor", "IIF( PXENTRYCODES.lSELECTED = .F., RGB( 255, 255, 255), RGB( 255,255,128))", "Column")Luigi