Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...