By DeveloperPop use a TBindingsList component, and relate TBindSourceDB alongside a TStringGrid and all good
But now I need to create a TDBGridLinkColumn by code (instead of a TStringColumn because it has the fieldname property that I need for my database visualize).
procedure TPrueba.Button1Click(Sender: TObject);
var
colDB :TDBGridLinkColumn;
collect:TCollection;
begin
colDB:=TDBGridLinkColumn.Create(collect);
colDB.Header:=’Code’;
colDB.FieldName:=’Code’;
colDB.Width:=100;
StringGrid1.AddObject(colDB);
end;
Thanks for your time, try to find some information but have not been successful for creating column …read more
Via: StackOverflow