如何把数据库表中的数据显示在Listview中
怎么把数据库表中的数据显示在Listview中?
怎么把数据库表中的数据显示在Listview中?
------解决方案--------------------
手工遍历Query加进去了~~~
with ADOQuery1 do
begin
CLose;
Open;
if Not IsEmpty then
while Not Eof do
begin
ListView1.Items.Add.Caption := FieldByName( 'ID ').AsString;
Next;
end;
end;
怎么把数据库表中的数据显示在Listview中?
------解决方案--------------------
手工遍历Query加进去了~~~
with ADOQuery1 do
begin
CLose;
Open;
if Not IsEmpty then
while Not Eof do
begin
ListView1.Items.Add.Caption := FieldByName( 'ID ').AsString;
Next;
end;
end;