1、获取DbgrdiEH 某一个选项的属性、加载到ComBox

procedure TForm1.FormCreate(Sender: TObject);
var
  PropInfo: PPropInfo;
  PropType: PTypeInfo;
  TypeData: PTypeData;
  I: Integer;
begin
  PropInfo := GetPropInfo(DBGridEh1.BackgroundData, 'Placement');
  PropType := PropInfo_getPropType(PropInfo);
  TypeData := GetTypeData(PropType);

  for I := TypeData^.MinValue to TypeData^.MaxValue do
  begin
    DBComboBoxEh1.Items.Add(GetEnumName(PropType, I));
  end;

  Button1Click(nil);


end;
View Code

相关文章:

  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2021-11-27
  • 2022-12-23
  • 2022-12-23
  • 2021-06-28
  • 2021-10-29
  • 2021-11-18
相关资源
相似解决方案