Hi,
How can i do that? I can make the grid editable with the code below:
AdvStringGrid1.Options := AdvStringGrid1.Options + [goEditing];
But can i make a column editable.
Thanks.
Hi,
How can i do that? I can make the grid editable with the code below:
AdvStringGrid1.Options := AdvStringGrid1.Options + [goEditing];
But can i make a column editable.
Thanks.
Please set goEditing = true and do this with the event OnCanEditCell:
procedure TForm4.AdvStringGrid1CanEditCell(Sender: TObject; ARow, ACol:Integer; var CanEdit: Boolean);
begin
CanEdit := ACol = 1;
end;
Thank you, it worked.