标签:add aic logs badge item sele search 技术 mamicode
repositoryItemSearchLookUpEdit
var y = userinfo.Select.ToList( a => new { userid = a.userid, codename = a.Name + "(" + a.badgenumber + ")", } ); repositoryItemSearchLookUpEdit1.NullText = string.Empty; repositoryItemSearchLookUpEdit1.DisplayMember = "codename"; //这里要注意大小写,跟数据库保持一致 repositoryItemSearchLookUpEdit1.ValueMember = "userid"; repositoryItemSearchLookUpEdit1.DataSource = y;
参考文章
C# dev SearchLookUpEdit 和 RepositoryItemSearchLookUpEdit 测试 - 蓝雨冰城 - 博客园
https://www.cnblogs.com/lanyubaicl/p/8940041.html
dev 控件用法2 之repositoryItemSearchLookUpEdit
标签:add aic logs badge item sele search 技术 mamicode
原文地址:https://www.cnblogs.com/hlm750908/p/12151134.html