码迷,mamicode.com
首页 > 其他好文 > 详细

TcxComboBoxProperties下拉框填充

时间:2019-06-05 23:41:32      阅读:205      评论:0      收藏:0      [点我收藏+]

标签:express   item   his   sse   finally   date   orm   actual   pre   

原文地址:https://www1.devexpress.com/Support/Center/Question/Details/CQ30369

 

Actually, the corresponding editor is passed to this event handler via the Sender parameter. So, please cast the Sender parameter to the corresponding type (to the TcxComboBox in this particular case) and then use its Properties.Items property to populate the editor‘s dropdown list:

procedure TForm1.cxVerticalGrid1EditorRow1EditPropertiesInitPopup(
  Sender: TObject);
var
  I: Integer;
begin
  with TcxComboBox(Sender).Properties do
  begin
    BeginUpdate;
    try
      Items.Clear;
      for I := 0 to 100 do
        Items.Add(‘Item#‘ + IntToStr(I));
    finally
      EndUpdate;
    end;
  end;
end;

TcxComboBoxProperties下拉框填充

标签:express   item   his   sse   finally   date   orm   actual   pre   

原文地址:https://www.cnblogs.com/railgunman/p/10982542.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!