读书人

如何把数据库表中的数据显示在Listvie

发布时间: 2012-03-07 09:13:51 作者: rapoo

怎么把数据库表中的数据显示在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;

读书人网 >.NET

热点推荐