首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

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

2012-03-07 
怎么把数据库表中的数据显示在Listview中?怎么把数据库表中的数据显示在Listview中?[解决办法]手工遍历Que

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

热点排行