New Posts New Posts RSS Feed: Cannot set Databinding Control Type
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Cannot set Databinding Control Type

 Post Reply Post Reply
Author
Miszou View Drop Down
Newbie
Newbie
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 19
Post Options Post Options   Quote Miszou Quote  Post ReplyReply Direct Link To This Post Topic: Cannot set Databinding Control Type
    Posted: 24-Jul-2007 at 1:22pm
Whenever I try to configure the databindings for a DataGrid View Binding Manager, the Control Type combo box is empty. Furthermore, after clicking the Control Type combo and then closing the Configure Databindings Window (accepting or discarding any changes) a messagebox appears with the following message:
 
The following exception occurred in the DataGridView:
 
System.ArgumentException: DataGridViewComboBoxCell value is not valid.
 
To replace this default dialog please handle the DataError event.
 
Any idea why this is happening, and how to fix it?
 
Thanks.
 
Back to Top
Linguinut View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 394
Post Options Post Options   Quote Linguinut Quote  Post ReplyReply Direct Link To This Post Posted: 25-Jul-2007 at 10:00am

When you configure the binding sources, you will also need to fill the combobox in your datagridview with the values that you want.  Here is an example:

(Declare the private member)
private EntityList<ReleaseStatus> mReleaseStatus;
 
(Then fill the combo box with entities)
mReleaseStatus = mPersMgr.GetEntities<ReleaseStatus>();
dataGridViewComboBoxColumn1.DataSource = mReleaseStatus;
dataGridViewComboBoxColumn1.DisplayMember = "Releasestatusdesc";
dataGridViewComboBoxColumn1.ValueMember = "__Self";
 
Hope that helps!
Bill
Back to Top
Miszou View Drop Down
Newbie
Newbie
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 19
Post Options Post Options   Quote Miszou Quote  Post ReplyReply Direct Link To This Post Posted: 25-Jul-2007 at 10:10am
It's not my code that is causing the problem - it's the IdeaBlade DataGridViewBindingManager when I right-click the DGVBM in the designer and select "Configure Databindings".
 
I can drag Properties onto the right side of the dialog, but the control type column for the dragged property is always empty and cannot be changed.
 
Back to Top
Linguinut View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 394
Post Options Post Options   Quote Linguinut Quote  Post ReplyReply Direct Link To This Post Posted: 25-Jul-2007 at 10:14am
Sorry...I misunderstood.  I checked the behavior and I am getting the exact same results.  Valueless control lists and the same error when striking cancel.  What version are you running?

Edited by Linguinut - 25-Jul-2007 at 10:14am
Back to Top
Miszou View Drop Down
Newbie
Newbie
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 19
Post Options Post Options   Quote Miszou Quote  Post ReplyReply Direct Link To This Post Posted: 25-Jul-2007 at 10:36am
No problem, after re-reading my initial post, think I could have worded it a little better!
 
Anyway, I am using Version 3.5.2.3
Back to Top
Linguinut View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 394
Post Options Post Options   Quote Linguinut Quote  Post ReplyReply Direct Link To This Post Posted: 25-Jul-2007 at 10:49am
Yep...same here.  I just upgraded yesterday to the new version.  My application builds and publishes beautifully, but these DGVBMs are not working.  I called support and spoke with David Klitzke.  He was able to duplicate the problem and is looking into it right away.
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 26-Jul-2007 at 3:26pm
It is definitely a bug.  We have a fix that we are testing now.  The plan is to put out a new release (3.5.2.5) that replaces the current release (3.5.2.3).  This should happen by the end of this week.  The ONLY difference between 3.5.2.3 and 3.5.2.5 is this one bug fix.
Back to Top
jeffdoolittle View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 146
Post Options Post Options   Quote jeffdoolittle Quote  Post ReplyReply Direct Link To This Post Posted: 26-Jul-2007 at 4:54pm
David,

Will the update also include the support for DevX 7.2.1?  Or is that still forthcoming?

Thanks,

--Jeff
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 26-Jul-2007 at 5:03pm
The 3.5.3 DevForce update will include support for DevEx 7.2.1.

Edited by davidklitzke - 27-Jul-2007 at 8:22am
Back to Top
IdeaBlade View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 30-May-2007
Location: United States
Posts: 353
Post Options Post Options   Quote IdeaBlade Quote  Post ReplyReply Direct Link To This Post Posted: 27-Jul-2007 at 3:35pm
The fix for this bug ("Cannot set Databinding Control Type") is now available in the download area as DevForce 3.5.2.5.

Edited by IdeaBlade - 27-Jul-2007 at 3:39pm
Back to Top
Linguinut View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14-Jun-2007
Location: United States
Posts: 394
Post Options Post Options   Quote Linguinut Quote  Post ReplyReply Direct Link To This Post Posted: 30-Jul-2007 at 1:32pm
IdeaBlade...great turnaround on the bug fix!  Excellent work!  The time from report to repair to delivery was very fast.  Thank you very much!!
 
Bill
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down