Forum > LCL
Keyboard not allowed in a specified cell of StringGrid
(1/1)
asdf:
StringGrid1.Options:=StringGrid1.Options+[goEditing];
How can I protect a specified cell from entering data by using keyboard ?
typo:
--- Code: ---procedure TForm1.StringGrid1SelectCell(Sender: TObject; aCol, aRow: Integer;
var CanSelect: Boolean);
begin
if (aCol = 1) and (aRow = 1) then
CanSelect := False;
end;
--- End code ---
Navigation
[0] Message Index