... hPenCreate(1,4, CLR_RED) oBrw:nMarqueeStyle := MARQSTYLE_SOLIDCELL oBrw:nColorBox:=hPen Everything works fine But if xBrowse flipping up and down arrows or mousewheel, the grid is painted in the color of the frame (In this case, red). If you click on any row xBowsa everything becomes normal