Author |
Share Topic Topic Search Topic Options
|
Miszou
Newbie
Joined: 14-Jun-2007
Location: United States
Posts: 19
|
Post Options
Quote Reply
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.
|
|
Linguinut
Senior Member
Joined: 14-Jun-2007
Location: United States
Posts: 394
|
Post Options
Quote Reply
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
|
|
Miszou
Newbie
Joined: 14-Jun-2007
Location: United States
Posts: 19
|
Post Options
Quote Reply
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.
|
|
Linguinut
Senior Member
Joined: 14-Jun-2007
Location: United States
Posts: 394
|
Post Options
Quote Reply
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
|
|
Miszou
Newbie
Joined: 14-Jun-2007
Location: United States
Posts: 19
|
Post Options
Quote Reply
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
|
|
Linguinut
Senior Member
Joined: 14-Jun-2007
Location: United States
Posts: 394
|
Post Options
Quote Reply
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.
|
|
davidklitzke
IdeaBlade
Joined: 14-Jun-2007
Posts: 715
|
Post Options
Quote Reply
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.
|
|
jeffdoolittle
Senior Member
Joined: 14-Jun-2007
Location: United States
Posts: 146
|
Post Options
Quote Reply
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
|
|
davidklitzke
IdeaBlade
Joined: 14-Jun-2007
Posts: 715
|
Post Options
Quote Reply
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
|
|
IdeaBlade
Moderator Group
Joined: 30-May-2007
Location: United States
Posts: 353
|
Post Options
Quote Reply
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
|
|
Linguinut
Senior Member
Joined: 14-Jun-2007
Location: United States
Posts: 394
|
Post Options
Quote Reply
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
|
|