skafy Posted July 28, 2016 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
Sherzod Posted July 28, 2016 Posted July 28, 2016 Hi, Sorry, can you clarify? For what do you need it? Best regards. Quote
skafy Posted July 29, 2016 Author 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
Sherzod Posted July 29, 2016 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
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.