获取cxBarEditItem选择控件comboBox的ItemIndex

var
  AItemIndex: Integer;
  AProperties: TcxComboBoxProperties;
  AValue: string;
begin
  AProperties := TcxComboBoxProperties(cxBarEditItem1.Properties);
  AValue := VarToStr(cxBarEditItem1.EditValue);
  AItemIndex := AProperties.Items.IndexOf(AValue);
  //Perform your actions
end;
posted @ 2017-04-18 18:51  舟山渔夫  阅读(1145)  评论(0编辑  收藏  举报