Hi, Something like this: 1.  function beforeedit(editor, context, eOpts) { return ajaxRequest(this, 'getCheck', [], false).responseText == 'true'; } 2.  procedure TMainForm.UniDBGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'getCheck' then begin if ClientDataSet1.FieldByName('EmpNo').AsInteger < 20 then UniSession.SendResponse('true') else UniSession.SendResponse('false') end; end;  
    • Like
    1