skafy Posted July 28, 2016 Share Posted July 28, 2016 I know there is event on DBGrid -> OnSetCellValue. It is fired when you leave cell's editing. Is there a event alike when I enter the cell. I suppose it would be something like OnGetCellValue, but it does not exist. Where can I retrive call value when I enter cell's editor? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 28, 2016 Share Posted July 28, 2016 Hi, Sorry, can you clarify? For what do you need it? Best regards. Quote Link to comment Share on other sites More sharing options...
skafy Posted July 29, 2016 Author Share Posted July 29, 2016 If cell hold some default value, I would like to remove it in time of editing (so that user don't need to delete this default value, but it would be blank for editing). If user doesn't enter enything I would than set back the default value (which I can do in OnSetCellValue). Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 29, 2016 Share Posted July 29, 2016 Hi, Can you try this?!: procedure TMainForm.UniDBGrid1AjaxEvent(Sender: TComponent; EventName: string; Params: TUniStrings); begin if EventName = 'beforeEdit' then begin yourVariable := Params.Values['V'] end; end; Best regards. 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.