如何向TListView中插入一行数据? 急救啊
比如我的TListview有5行数据
我想在第2和第2行之间插入一行,该怎么弄 ?
[解决办法]
with listview.items.insert(pos) do
begin
caption:= 'xxx ';
subitems.add( 'xxx ');
indent:=;
imageindex:=;
end;
以上代码是在listview的第pos项处插入一个新项,如果你想在第2行之后插入一行的话,将pos设为3即可