Print Page | Close Window

Cannot set Databinding Control Type

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce Classic
Forum Discription: For .NET 2.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=325
Printed Date: 12-Jun-2026 at 1:26am


Topic: Cannot set Databinding Control Type
Posted By: Miszou
Subject: Cannot set Databinding Control Type
Date 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.
 



Replies:
Posted By: Linguinut
Date 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


Posted By: Miszou
Date 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.
 


Posted By: Linguinut
Date 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?


Posted By: Miszou
Date 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


Posted By: Linguinut
Date 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.


Posted By: davidklitzke
Date 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.


Posted By: jeffdoolittle
Date 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


Posted By: davidklitzke
Date Posted: 26-Jul-2007 at 5:03pm
The 3.5.3 DevForce update will include support for DevEx 7.2.1.


Posted By: IdeaBlade
Date 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.


Posted By: Linguinut
Date 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



Print Page | Close Window