赞
踩
//nulltext 默认显示文本
lookUpEdit13.Properties.NullText = "请选择";
//这里使用代码添加列,一般卸载load事件中,界面上也可以找到。caption为列显示名称,fieldname对应列属性
lookUpEdit13.Properties.Columns.Add(new LookUpColumnInfo() { Caption = "代码", FieldName = "FLDVALUE" });
lookUpEdit13.Properties.Columns.Add(new LookUpColumnInfo() { Caption = "备注", FieldName = "CODENAME" });
lookUpEdit13.Properties.DisplayMember = "CODENAME";
lookUpEdit13.Properties.ValueMember = "FLDVALUE";
lookUpEdit13.Properties.DataSource = xingbielist;
//获取选中得值
lookupedit13.editvalue
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。