I am using the edMemoDropDown editor in a TAdvColumnGrid. I see that there are header and footer for this editor, and in the OnGetEditorType, I have this code:
acgCustomFields.MemoDropDown.DropDownHeader.Caption := 'Memo';
acgCustomFields.MemoDropDown.DropDownHeader.Visible := True;
However, at run time, I see no text in the header of the memo. Have I missed some setting?
Thanks!
tms_Nancy
(tms Nancy)
October 9, 2012, 5:21am
2
Following code:
procedure TForm1.AdvStringGrid1GetEditorProp(Sender: TObject; ACol,
ARow: Integer; AEditLink: TEditLink);
begin
AdvStringGrid1.MemoDropDown.DropDownHeader.Caption := 'test caption';
end;
procedure TForm1.FormCreate(Sender: TObject);
begin
advstringgrid1.DefaultEditor := edMemoDropDown;
advstringgrid1.Options := advstringgrid1.Options + [goEditing];
end;
Results in:
Kind Regards,
Nancy Lescouhier
tmssoftware team
Thanks, I made that discovery yesterday afternoon. What is not clear is why or when I should use GetEditorProp, rather than GetEditorType.
OnGetEditorType just for setting what edit control class to use as inplace editor
OnGetEditorProp to customize any properties you want for the inplace edit control.