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. 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. 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). 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. 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