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. 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now