Hi!
How to deselect/unselect stringgrid row/cell ??
I have StringGrid with Rowselect set to 'True', my procedure:
procedure TMainForm.StringGrid1DblClick(Sender: TObject);
var
point: TPoint;
coord : TGridCoord;
begin
point:= StringGrid1.ScreenToClient(Mouse.CursorPos);
coord:= StringGrid1.MouseCoord(point.X, point.Y);
if coord.Y <> StringGrid1.RowCount-1 then
ShowMessage('Col = ' + IntToStr(coord.X)+ ', Row = ' +inttostr(coord.Y))
else
// here I need deselecting/unselecting code...
end;
Thanks!