Hi,
I'm trying to put the Filtering.Editor option on dynamically created columns in a UniDBGrid, but it doesn't work at all, in all the ways I try, I get the message "Argument out of range" when running.
Here is the code I used to apply the filter:
dbGridSQL_Resultado.Columns.Clear;
if optControl = 1 then
begin
with dbGridSQL_Resultado do
begin
DataSource := dsFDMemTable;
Columns.Items[0].Filtering.Editor := TUniEdit(Self.FindComponent('UniEdit1').Name);
Columns.Items[0].Filtering.Enabled := True;
end;
end;
Image Error: