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.
Hi Andrew,
this issue was not there in Infragistics version 2010.2 . But when we started using Infragistics version 2017.1 , this issue is coming.
Similarly, for now, i have tried to give DropDownStyle as UltraComboStyle.DropDown then, it works fine as the current value is preserved. Why can't we do this with DropDownList ?
But the proble with DropDown option is it allows value which are not in the drop-down collection and I don't want that.
Will you please suggest me, is there any properties defined by infragistics to overcome this issue with DropDownList ?