来自: xbwang, 时间: 2004-08-15 18:13:06, ID: 2765217
我正在用此类控件做工作,告诉你吧:
with tvMain.CreateColumn as TcxGridDBColumn do
begin
Caption :='CAPTION';
PropertiesClass :=(TcxComboBoxProperties);
DataBinding.FieldName :='FIELDNAME';
Width :=60;
Options.Filtering :=False;
Options.Sorting :=False;
Options.Editing:=False;
with Properties as TcxComboBoxProperties do
begin
Items.Add('Item1');
Items.Add('Item2');
Items.Add('Item3');
Items.Add('Item4');
end;
end;