In my grid in one of my columns I have set CheckComboxBox to it's property. The problem is I'm not able to fill it's Items programmatically.
Using
void __fastcall TfPln::tvDepACGetProperties(TcxCustomGridTableItem *Sender,
TcxCustomGridRecord *ARecord, TcxCustomEditProperties *&AProperties)
{
AProperties=cxCheckComboBox1->Properties;
}
but my form freezes !
My goal is to fill that column with data from a dataset on Form create event so I even do not reach column's Items
property!
I am asking what's the possible way to fill Grid's TcxCheckCombobox Items???
I have a delphi code which do this
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;
The line which fills items TcxCheckComboBoxProperties(cxGrid1DBTableView1Company.Properties).Items.AddC
heckItem(FieldByName('Company').AsString);
right??
in c++ I use TcxCheckComboBoxProperties(tvDepAC->Properties)
but when I try to call Items
property there isn't such property! That's TcxCheckComboBoxProperties(tvDepAC->Properties)->Items.AddCheckItem(i)
is not correct!!
What could be the problem??
need help !!!