Mapping elements to dbctrlgrid without data source in Delphi

I am trying to display items from a list of objects. I want to display the data in the following format as shown.

type TFeedItem = class private FTitle: string; FDescription: string; FLink: string; FImageUrl: string; public property Title: string read FTitle; property Description: string read FDescription; property Link: string read FLink; property ImageUrl: string read FImageUrl; end; 

// Code to display the elements

 var I: Integer; list: TObjectList<TFeedItem> begin for I := 0 to list.count - 1 do begin // display each item of the list into dbctrlgrid end; end; 

enter image description here

The search results for the following topics:

Link1: Delphi control that could emulate Firefox's "Add-ons \ Extension list"?

Link2: Custom ListBox List Items with Panel

As suggested, I tried using dbctrlgrid, but I could only use it with the database using the datasource property assigned by TFDTable. So the question is, how can this be done without a data source?

Change The question was controversial. So, I updated it and added a sample of structural code.

+1
source share

Source: https://habr.com/ru/post/1233788/


All Articles