EhLib.Com https://forum.ehlib.com/en/ |
|
How to click the edit button in dbgridEh https://forum.ehlib.com/en/viewtopic.php?f=5&t=1178 |
Page 1 of 1 |
Author: | redsea71 [ 28 Sep 2022, 18:11 ] | ||
Post subject: | How to click the edit button in dbgridEh | ||
Hi How to click the edit button in dbgridEh (se the pict) using delphi code instead using click mouse. Best Regards
|
Author: | EhLibSupport [ 06 Oct 2022, 09:07 ] |
Post subject: | Re: How to click the edit button in dbgridEh |
Hello redsea71 Try this code: Code: type
TDBAxisGridInplaceEditCrack = class(TDBAxisGridInplaceEdit); procedure TfrMainGrid.SpeedButton1Click(Sender: TObject); begin if not DBGridEh1.EditorMode then DBGridEh1.EditorMode := True; TDBAxisGridInplaceEditCrack(DBGridEh1.InplaceEditor).DropDown; end; |
Author: | ituneksa [ 09 Oct 2022, 13:47 ] |
Post subject: | Re: How to click the edit button in dbgridEh |
I tried. it is not working (do nothing). |
Author: | EhLibSupport [ 10 Oct 2022, 08:29 ] |
Post subject: | Re: How to click the edit button in dbgridEh |
Hello Please write in what environment you tested. We tested in the standard Demo project <EhLib Archive>\Demos\MainDemo\ EhLib.VCL 10.2 Build 10.2.033 Place a SpeedButton on a TfrMainGrid frame and write the following Click code. Code: procedure TfrMainGrid.SpeedButton1Click(Sender: TObject);
begin DBGridEh1.SetFocus; DBGridEh1.SelectedIndex := 1; if not DBGridEh1.EditorMode then DBGridEh1.EditorMode := True; TDBAxisGridInplaceEditCrack(DBGridEh1.InplaceEditor).DropDown; end; |
Author: | ituneksa [ 13 Oct 2022, 16:12 ] |
Post subject: | Re: How to click the edit button in dbgridEh |
Is Ehlib VCL 10.0.030 work in this case ? |
Author: | EhLibSupport [ 17 Oct 2022, 18:18 ] | ||
Post subject: | Re: How to click the edit button in dbgridEh | ||
Hello Yes, it works in EhLib 10.0 Try to download last build EhLib.VCL 10.0 Build 10.0.039
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |