Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Binding a combo editor to a sql INT value
Message
From
18/05/2005 14:02:02
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
Binding a combo editor to a sql INT value
Miscellaneous
Thread ID:
01015479
Message ID:
01015479
Views:
56
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
Map
View

Click here to load this message in the networking platform