KingOrmon Posted February 23, 2012 Posted February 23, 2012 Hi, How can I get Editor value of a DBGrid column ? I need to execute this code inside onKeyDown event (when user click return or tab) procedure TMainForm.UniEdit1KeyDown(Sender: TObject; var Key: Word; Shift: TShiftState); begin if Key = 13 then begin ClientDataSet1.Edit; ClientDataSet1.FieldByName('LastName').AsString := UniEdit1.Text; // Value is not of gridcolumn. ClientDataSet1.FieldByName('City').AsString := 'More......'; ClientDataSet1.Post; end; end; Quote
Administrators Farshad Mohajeri Posted February 24, 2012 Administrators Posted February 24, 2012 Unfortunately it is not possible. Value of a TUniEdit field which acts as a DBGrid editor can't be retrieved in code. Quote
joriolm Posted February 29, 2012 Posted February 29, 2012 Hi Farshad, Some plans to add ButtonStyle to TUniDBGrid in future releases? It will be great can show an cbsEllipsis in a column. Thanks. Unfortunately it is not possible. Value of a TUniEdit field which acts as a DBGrid editor can't be retrieved in code. Quote
Administrators Farshad Mohajeri Posted February 29, 2012 Administrators Posted February 29, 2012 Yes, it is planned but I'm not sure about the target version. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.