danz67
asked on
Delphi - cxGrid event
Hello,
I have a cxgrid with a column set as a property LookupComboBox,
I put this event onCloseUp cidce that allows me to add a new record with the focus in the same column.
I would like to add a new record when the user presses the enter key but I can not figure out how to
I have a cxgrid with a column set as a property LookupComboBox,
I put this event onCloseUp cidce that allows me to add a new record with the focus in the same column.
cxGrid1DBTableView1.DataController.PostEditingData;
cxGrid1DBTableView1CODICE.EditValue:=MyTable2CODICE.AsString;
cxGrid1DBTableView1.DataController.Append;
cxGrid1DBTableView1DESCRIZIONE.Selected := True;
I would like to add a new record when the user presses the enter key but I can not figure out how to
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Now when I press the enter button, the focus moves to the next record,
but in the current record is not the most blank,
but if I select a value from the current record taken from loockup all goes well