Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Re: Display Description only ComboBox

$
0
0

Hello Lakshmi,

 

Setting DisplayDesc attribute to True iscorrect way. However, in some cases you may have to set the property manually in code by writing "myComboBox.Item.DisplayDesc = true;" under the OnInitializeComponent() class to trigger the property.

 

Also about your examples. User Code won't display User Nameas description because they are two different fields. They don't have Value/Description relationship between each other. To display the User Name you have to add another TextBox and bind it.

 

And note that Value and Description are attributes of a single column. When you set DisplayDesc attribute to True for a TextBox orComboBox this means that item will be displaying the Description of the bounded DataSource field.

 

Best Regards,

Atilla


Viewing all articles
Browse latest Browse all 3354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>