TSeba Posted June 28, 2017 Share Posted June 28, 2017 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 Quote Link to comment Share on other sites More sharing options...
Sherzod Posted June 29, 2017 Share Posted June 29, 2017 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, Quote Link to comment Share on other sites More sharing options...
TSeba Posted June 29, 2017 Author Share Posted June 29, 2017 Great!!!. Thank you Quote Link to comment Share on other sites More sharing options...
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.