How do I know that the double click was made in a fixed cell
Grateful for the help.
Hi,
The following code should allow you to detect dblclicking on a fixed cell:
procedure TForm15.TMSFMXGrid1DblClick(Sender: TObject);
var
pos: TPointF;
c: TCell;
begin
pos := ScreenToClient(Screen.MousePos);
pos := TMSFMXGrid1.AbsoluteToLocal(pos);
c := TMSFMXGrid1.XYToCell(pos.X, pos.Y);
if TMSFMXGrid1.IsFixed(c.Col, c.Row) then
begin
//
end;
end;
Kind Regards,
Pieter