Developer

RefreshSelectedCell

Invalidate cell specified by SelectedCol and SelectedRow properties.

procedure RefreshSelectedCell;

Example:


procedure TForm1.NextGrid61MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin NextGrid61.RefreshSelectedCell; end; procedure TForm1.NextGrid61MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); begin NextGrid61.RefreshSelectedCell; end; procedure TForm1.NxTextColumn61DrawBackground(Sender: INxColumn; ACol, ARow: Integer; CellRect: TRect; State: TNxCellDrawState); begin with NextGrid61.Canvas do begin Brush.Color := clBtnFace; FillRect(CellRect); if csPressed in State then Frame3D(NextGrid61.Canvas, CellRect, clBtnShadow, clBtnHighlight, 1) else Frame3D(NextGrid61.Canvas, CellRect, clBtnHighlight, clBtnShadow, 1); end; end;

See also