Jump to content

How to use SelectedField.FieldKind in TUniDBGrid?


TSeba

Recommended Posts

Hi,

I have this code made in Delphi 2007

 

If (DBGrid.SelectedField.FieldKind = fkLookup) then ...

 

I need to find how to use the same condition with UniDbGrid. Could you please help me?

 

Thank you in advance

Link to comment
Share on other sites

Hi,

 

One of the possible solution, try:

 

1.

type
  TMyUniDBGrid = class(TUniDBGrid)

  end;

2.

procedure TMainForm.UniButton1Click(Sender: TObject);
begin
  if UniDBGrid1.Columns[TMyUniDBGrid(UniDBGrid1).CurrCol].Field.FieldKind = fkLookup then
    ...  
end;

Best regards,

Link to comment
Share on other sites

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