在我的一个列的网格中,我将 CheckComboxBox 设置为它的属性。问题是我无法以编程方式填充它的项目。
使用
void __fastcall TfPln::tvDepACGetProperties(TcxCustomGridTableItem *Sender,
TcxCustomGridRecord *ARecord, TcxCustomEditProperties *&AProperties)
{
AProperties=cxCheckComboBox1->Properties;
}
但我的表格冻结了!我的目标是用来自表单创建事件的数据集的数据填充该列,这样我什至没有达到列的Items
属性!
我在问填充 Grid 的 TcxCheckCombobox 项的可能方法是什么???
我有一个执行此操作的德尔福代码
procedure TForm1.FormCreate(Sender: TObject);
begin
with Table1 do
begin
DisableControls;
First;
while not Eof do
begin
TcxCheckComboBoxProperties(cxGrid1DBTableView1Company.Properties).Items.AddC
heckItem(FieldByName('Company').AsString);
Next;
end;
First;
EnableControls;
end;
end;
填充项目的行TcxCheckComboBoxProperties(cxGrid1DBTableView1Company.Properties).Items.AddC
heckItem(FieldByName('Company').AsString);
对吗?
在我使用的 c++ 中,TcxCheckComboBoxProperties(tvDepAC->Properties)
但是当我尝试调用 Items 属性时,没有这样的属性!那TcxCheckComboBoxProperties(tvDepAC->Properties)->Items.AddCheckItem(i)
是不对的!!
可能是什么问题呢??
需要帮忙 !!!