TcxComboBoxProperties下拉框填充
2024-09-04 02:08:49
原文地址: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;
最新文章
- 利用反射与dom4j读取javabean生成对应XML和读取XML得到对应的javabean对象集合
- js 的点击事件
- ubuntu中jdk已经安装,但是eclipse启动报错
- IPD模式下开展敏捷开发的一些问题汇总
- Linux安装卸载JDK(1.7 rpm)
- InLineHookSSDT
- .NET简谈插件系统开发模式
- WPF 列表控件中的子控件上下文绑定
- 使用weinre通过PC浏览器调试手机网页
- Linux学习笔记4——函数调用栈空间的分配与释放
- itext poi 学习之旅 (1)创建pdf
- 【最大点权独立集】【HDU1565】【方格取数】
- rsyslog+LogAnalyzer 日志收集
- 万能的Python,还能用来制作高大上的进度条?
- Linux基础:CentOS安装python3.7
- Xcode常用的文件路径
- CMakeLists.txt使用
- 洛谷P4336 [SHOI2016]黑暗前的幻想乡 [Matrix-Tree定理,容斥]
- cf1110E 思维
- host-only