Ver Mensaje Individual
  #2  
Antiguo 21-09-2004
Avatar de roman
roman roman is offline
Moderador
 
Registrado: may 2003
Ubicación: Ciudad de México
Posts: 20.269
Reputación: 10
roman Es un diamante en brutoroman Es un diamante en brutoroman Es un diamante en bruto
En el evento OnMouseDown del StringGrid intenta poner esto:

Código Delphi [-]
var
  GridCoord: TGridCoord;

if Button = mbRight then
begin
  // Obtener las coord. de la celda bajo el cursor
  GridCoord := StringGrid1.MouseCoord(X, Y);

  // Seleccionar la celda
  StringGrid1.Col := GridCoord.X;
  StringGrid1.Row := GridCoord.Y;  
end;

// Saludos
Responder Con Cita