<CODE><CODE>procedure TCalcul.HideGridSelection(Grid: TCustomDrawGrid); var R: TGridRect; begin R.TopLeft := TGridCoord(Point(-1, -1)); R.BottomRight := TGridCoord(Point(-1, -1)); Grid.Selection := R; end ;</CODE>
procedure TCalcul.StringGrid1DrawCell(Sender: TObject; ACol, ARow: Integer; Rect: TRect; State: TGridDrawState); begin //Pour effacer la sélection même quand le contrôle perd le focus HideGridSelection(Sender as TStringGrid); end;
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre question<CODE>procedure TCalcul.HideGridSelection(Grid: TCustomDrawGrid);</CODE>