H htw Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-21 #1 最好是能给出BCB中的答案 ,delphi也行, 很急,没有时间试了,请兄弟们帮帮忙
H hgl780428 Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-21 #2 listview1.columns[2].caption:='你想要的列名',就可以了
H htw Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-21 #3 BCB中怎么不行呢?有点奇怪 listview1->Columns[2]->Caption ="你想要的列名"
独 独帅 Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-21 #4 不是Columns[2]而是Column[2](你多写了一个s) listview1->Column[2]->Caption ="你想要的列名"
K KOKS Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-21 #5 delphi listview1.columns[2].caption:='列名', BCB listview1->Columns[2]->Caption ="列名"
X xianjun Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-21 #6 特地装了个BCB6 [] (上次硬盘空间不够,删除了) 正确答案是: ListView1->Columns->Items[2]->Caption = "测试";
X xianjun Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-21 #7 另,在Delphi中可以简写成 listview1.columns[2].caption:='列名' 其实也是等价于 listview1.columns.Items[2].caption:='列名' 只不过COlumns的默认属性是Items,故Columns.Items[2] <=> Columns[2]
另,在Delphi中可以简写成 listview1.columns[2].caption:='列名' 其实也是等价于 listview1.columns.Items[2].caption:='列名' 只不过COlumns的默认属性是Items,故Columns.Items[2] <=> Columns[2]
Y yanghai0437 Unregistered / Unconfirmed GUEST, unregistred user! 2002-10-21 #8 ListView1->Columns->Items[2]->Caption = "测试"; ListView1->Columns->Items[2]->SubItems->add("测试");