Showing posts with label ultracomboeditor set value. Show all posts
Showing posts with label ultracomboeditor set value. Show all posts

Saturday, September 20, 2014

How to programatically set an item in UltraComboEditor



UltraComboEditor1.DataSource = datatable1;

UltraComboEditor1.DisplayMember = "Caption";
UltraComboEditor1.ValueMember = "Values";

you can set value / selected value by below code.
UltraComboEditor.value = 1 // whatever in value member.


If you want to select Value from display member than you can use below code example.

UltraComboEditor.SelectedIndex = UltraComboEditor.FindString("DisplayValue"); // whatever in display member.