General information
Category:
The Mere Mortals .NET Framework
Title:
Binding a combo editor to a sql INT value
Hello all:
I'm trying to do something quite simple, as so I thought. I'm using the MMF version of the Infragistics comboeditor. I populate this combo box as follows:
for(int i=1; i<3; i++)
{
this.cbomk_sem.Items.Add(i);
}
And I bind this control with the following statement:
this.cbomk_sem.DataBindings.Add("Value",ds,"ST_MKPD.mk_sem");
The problem is in the binding. If I run the project without the binding, it runs fine, and my dropdown is populated accordingly. If I try to bind the control I receive the following error: "Exception has been thrown by the target of an invocation."
I have often received this same error in trying to bind a INT value to an MMF Infragistic TextEditor. I solved the problem by using an MMF Infragistic UltraMaskedEdit, with the EditAs property set to Interger. This will not work in this situation because I need the values to be in a drop down.
How can I bind a sql numeric field to an MMF Infragistic ComboEditor?
Thanks !
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only