msegura Posted September 6, 2014 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
Sherzod Posted September 7, 2014 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
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.