0
I’m trying to use the IndexFieldNames
inside the FMX to organize the data according to the column but when calling the method HeaderClick
, I can’t get the Column name and only its content. Using Delphi 10.3
I wonder how I can get the name of the column to insert in IndexFieldNames
Follow a piece of my code.
procedure TFConTitulos.GDTitulosHeaderClick(Column: TColumn);
var
Number : integer;
Name: string;
begin
Number:= Column.Index;{ so consegui pegar o indice da columa selecionada}
Name:= {codigo vai aqui }
UDM.FDConTiti.Close;
UDM.FDConTiti.IndexFieldNames := Name;
UDM.FDConTiti.Open;
end;
This Fdcontiti is a Tfdconnection or a Tfdtable/Tfdquery?
– Tiago Rodrigues
It’s a Tfdquery I tested the assignment on it directly and it works, so my problem is capturing the Field name of the column. In other words, I need the command similar to the VCL
Column.FieldName
for FMX.– Danilo Araujo