Lookupedit small note

    In a recent development, the use of Devpress which controls the use of drop-down box Lookupedit control has more to remember its usage, close-up article, we want to help myself and other colleagues:
       Bind Data Source:                    
            lookUpEdit1. Properties.ValueMember = actual field use;
            fields to be displayed lookUpEdit1.Properties.DisplayMember =;
            lookUpEdit1.Properties.DataSource = data source;
      determining whether the pull-down selection box:
             iF (this.lookUpEdit1.Editvalue == null)
             {
                // message, indicating that the drop-down box is not selected
             }  
      empty nullText value:
            lookUpEdit1.Properties.nulltext = null;
      values using the lookUpEdit1:
          variable = this.lookUpEdit1.Editvalue.Tostring () // is the value of ookUpEdit1.Properties.ValueMember
          Variable = this.lookUpEdit1.Text.Trim () // is the value of ookUpEdit1.Properties.DisplayMember

Reproduced in: https: //www.cnblogs.com/yangjie5188/archive/2008/03/14/1105057.html

Guess you like

Origin blog.csdn.net/weixin_34104341/article/details/93499939