I am using Infragistics.Win.UltraWinGrid.UltraCombo for getting the Drop down List.
and hence selected, DropDownStyle = UltraComboStyle.DropDownList; But I'am losing it's value (i.e. udRuleContext.Value) when I click on drop-down button.
I am using following Method to bind RuleCombo and 'udRuleContext' is object of 'UltraCombo',
private void BindRuleCombo() { if (this.udRuleContext.DataSource != null) { this.udRuleContext.DataSource = null; }
this.udRuleContext.DataSource = this.listSelRules; this.udRuleContext.DisplayMember = "RuleName"; this.udRuleContext.ValueMember = "RuleName"; }
So, how can I tackle this issue so that the field's current value should not be lost while clicking the drop-down button?
I am using Infragistics Professional 2017 vol 1.
Hello AOps,
I have been investigating this issue you are seeing in this case, and from the code that you have provided, the largest reason that I can think of that a value would be lost when going into edit mode on a drop-down by clicking the drop-down button would be that your ValueMember of “RuleName” does not match the data type of the underlying column in your UltraGrid.
Would it be possible for you to please verify that this is or is not the case? If it is not, would it be possible for you to please provide an isolated sample project that shows this behavior you are seeing so I may investigate further?
Please let me know if you have any other questions or concerns on this matter.