📜  如何将项目添加到列表视图 delphi 代码示例

📅  最后修改于: 2022-03-11 14:54:56.195000             🧑  作者: Mango

代码示例1
var
  Itm: TListItem;
begin
    // start of your query loop
    Itm := ListView1.Items.Add;
    Itm.Caption := SQLQuery1['fullname'];
    Itm.SubItems.Add(SQLQuery1['cntry']);
    // end of your query loop
end;