Jump to content

DBGridGetCellValue


skafy

Recommended Posts

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...