The next control we will create handles Lookup attributes. Instead of a CRM-style lookup control, the CrmEntityPicklistControl renders a drop-down list just like our CrmPicklistControl. However, this control doesn’t use the Microsoft Dynamics CRM metadata to populate its option list. It instead uses a query to retrieve records from an entity. The end user can then select the appropriate record from the drop-down list. The CrmEntityPicklistControl also gives you the ability to filter the results returned to populate the drop-down options.
Programming the CrmEntityPicklistControl
Adding theCrmEntityPicklist class
Right-click the ProgrammingWithDynamicsCrm4.Controls Project in Solution Explorer. Under Add, click New Item.