先要增加列,然后才能设置每项的值
TComboColumnItem *ColumnItem;
ColumnItem=CCBox1->Columns->Add();
ColumnItem->Width=75;
ColumnItem->Font->Style=TFontStyles()<<fsBold;
ColumnItem=CCBox1->Columns->Add();
ColumnItem->Width=75;
ColumnItem=CCBox1->Columns->Add();
ColumnItem->Width=50;
ColumnItem->Alignment=taRightJustify;
ColumnItem->Font->Color=clBlue;
ColumnItem->Font->Style=TFontStyles()<<fsBold;
TComboItem *ComboItem;
ComboItem=CCBox1->ComboItems->Add();
ComboItem->Strings->Add("BMW");
ComboItem->Strings->Add("CI323");
ComboItem->Strings->Add("1.200.000");
另外请问,您是否有此控件的源码,能不能给小弟一份