我使用LISTVIEW,OWNERDATA=true
在ONDATA里面
if item.Index<(qry1.RecordCount*2) then
begin
if (item.Index mod 2)=0 then
begin
qry1.RecNo:=(item.Index div 2)+1;
item.Caption:=qry1.FieldByName('公司').AsString; end
else
begin
item.Caption:=qry1.FieldByName('公司2').AsString;
end;
end;
如果在LISTVIEW中选中某一项,当前行数据会显示隔行数据,
请问是怎么会事情
在ONDATA里面
if item.Index<(qry1.RecordCount*2) then
begin
if (item.Index mod 2)=0 then
begin
qry1.RecNo:=(item.Index div 2)+1;
item.Caption:=qry1.FieldByName('公司').AsString; end
else
begin
item.Caption:=qry1.FieldByName('公司2').AsString;
end;
end;
如果在LISTVIEW中选中某一项,当前行数据会显示隔行数据,
请问是怎么会事情
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货