ikaurov Posted February 15, 2017 Share Posted February 15, 2017 Hello, is it possible programmatically call row editor (RowEditor := true) on selected row. Thanks in advance, Ilia Quote Link to comment Share on other sites More sharing options...
Sherzod Posted February 15, 2017 Share Posted February 15, 2017 Hi, Maybe you need it ?: UniDBGrid -> ClicksToEdit = 1 Best regards. Quote Link to comment Share on other sites More sharing options...
ikaurov Posted February 16, 2017 Author Share Posted February 16, 2017 Nope, sadly not. What I'd like to implement is: 1. Open dialog form 2. Close dialog form and immediately call RowEditor for UniDbGrid. Target is to avoid user dblclick on row to start editing. Best regards Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted April 10, 2017 Share Posted April 10, 2017 @Ikaurov, Interesting ! Did you find a way to do it ? Thx. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 10, 2017 Share Posted April 10, 2017 Hi, @Ikaurov,Interesting !Did you find a way to do it ?Thx. Do you want to programmatically activate grid editing in RowEditor mode ?! If yes, then you can just do this, for example: grid.DataSource.DataSet.Edit Best regards. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted April 10, 2017 Share Posted April 10, 2017 Thank you DD, for your help. It works fine Best regards. Quote Link to comment Share on other sites More sharing options...
ikaurov Posted April 28, 2017 Author Share Posted April 28, 2017 Yes, works perfect and really simple ! Thanks, DD Quote Link to comment Share on other sites More sharing options...
jrp Posted April 28, 2017 Share Posted April 28, 2017 And how to make RowEditing could be activated programmaticaly only? In other words: how to make double-clicking the grid do not trigger editing? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 28, 2017 Share Posted April 28, 2017 And how to make RowEditing could be activated programmaticaly only? In other words: how to make double-clicking the grid do not trigger editing? Hi, Try: procedure TMainForm.UniButton1Click(Sender: TObject); begin UniDBGrid1.JSInterface.JSCode('var me='#1'; ed=me.getSelectionModel().getCurrentPosition(); me.editingPlugin.startEdit(ed.row, ed.column);'); end; Best regards, Quote Link to comment Share on other sites More sharing options...
jrp Posted April 29, 2017 Share Posted April 29, 2017 Hello Delphi Developer, The code can activate row editor, but double-clicking the grid still triggers editing. Quote Link to comment Share on other sites More sharing options...
Abaksoft Posted May 2, 2017 Share Posted May 2, 2017 @ JRP I remember something like : uniDBgrid > options > RowEditor = False. Quote Link to comment Share on other sites More sharing options...
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.