你应该首先确保ListView1.Items[x].SubItems.Count > 2
否则,
你要用添加的方式,而不是赋值
if ListView1.Items[x].SubItems.Count = 0 then
begin
ListView1.Items[x].SubItems.Add(Col2Text);
ListView1.Items[x].SubItems.Add(Col3Text);
end
else if ListView1.Items[x].SubItems.Count = 1 then
begin
ListView1.Items[x].SubItems.Add(Col3Text);
end