TSeba Posted June 28, 2017 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
Sherzod Posted June 29, 2017 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
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.