msegura Posted September 6, 2014 Share Posted September 6, 2014 Hi again... Another question about dbgrid. I need to change the dbgrid state from server side between edit and select. ¿How can I do it? Thanks a lot. Cheers. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 7, 2014 Share Posted September 7, 2014 Hi msegura.Try to use:1. To edit: editingPlugin.startEdit (rowIndx, colIndx); procedure TMainForm.UniButton3Click(Sender: TObject); var gridJSName: string; begin gridJSName := UniDBGrid1.JSName; UniSession.AddJS('if (' + gridJSName + '.editingPlugin) {' + gridJSName + '.editingPlugin.startEdit(' + gridJSName + '.uniRow, ' + gridJSName + '.uniCol)}'); end; 2. To complete editing: editingPlugin.completeEdit (); procedure TMainForm.UniButton4Click(Sender: TObject); var gridJSName: string; begin gridJSName := UniDBGrid1.JSName; UniSession.AddJS('if (' + gridJSName + '.editingPlugin) {' + gridJSName + '.editingPlugin.completeEdit()}'); end; Best regards. 1 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.