Skip to content

DGV with ComboBox column error #229

Closed

Description

@itg-assistant

Alex Prinias asked 2016-09-01 20:04:45 UTC

Hi,

While creating a DGV with a ComboBox column, I get an Application Error with the following text:

The following exception occurred in the DataGridView.
DataGridViewComboBoxCell value is not valid.
To replace this default dialog please handle the DataError event.

After handling the DataError event I saw that the all the values in the ComboBox column gave a problem, although they were legitimate (value = 1, the ID of a parent entity, the ComboBox is supposed to show the resolved Name for ID = 1).

The debugger does not give an error, i.e. the assignment of the Datasource to the DGV goes smoothly.

Not know if connected to this error, the dropdown does not show in the ComboBox column, it shows an empty cell instead. If I press Ok to the error and click in the ComboBox column, I see the dropdown with the correct entries. If I select one and change row, I get an error about not being able to convert string '' to a value, as if it sees an empty string...

Any ideas?

Best,
Alex

Activity

  1. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2016-09-01 20:30:14 UTC

    Hi Alex,

    thank you. We just noticed the same problem in one of our test applications.
    It will be fixed asap and included in the next build.

    Best regards
    Frank

  2. added
    BugSomething is broken or behaving unexpectedly.
    on Jun 12, 2026
  3. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Alex Prinias answered 2016-09-01 20:34:21 UTC

    Hi Frank, thank you, it's a relief that you also see it, I was thinking "how am I gonna reproduce this in a simple project?"...

    Best,
    Alex

  4. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Alex Prinias answered 2016-09-03 08:47:11 UTC

    Hi,

    The original problem I reported was with version 1.2.45. After updating to 1.2.51 I don't see the error anymore, but the ComboBox behaviour/binding is still not the expected.

    But I'm writing to point out a more general problem: with the fast pace you update the builds, which is excellent by the way,  we (at least I) cannot keep track of what's going on. For example, I saw that there was a new version in the Beta Updates post, version 1.2.49 and thought to myself, ok, let's try it to see if the problem was fixed. And when I updated I got 1.2.51, where the problem was partially fixed. But since 1.2.51 is not reported in Beta Updates, I have no clue whether it was created before or after I had seen the problem with version 1.2.45. And the time reporting of the posts (16 hours ago, 2 days ago etc.) is not very useful. So what I think would be very useful is:

    • if possible have the exact time of a post/answer in the forum so that we can compare -- I understand that this can be done only if available in the forum software...

    •  you drop a line in the Beta updates whenever a new build is uploaded (even without any explanation/comment) just to let us know the time the build was published -- hope this is not too much overhead for you...

    Hope I'm not becoming a PITA !

    Best,
    Alex

  5. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Frank (ITG) answered 2016-09-06 15:30:51 UTC

    Hi Alex,

    my apologies for confusing you with the build updates.

    We will check to see if we can modify the forum software to display the exact time.

    We will try to keep the Beta Updates in synch with the releases as much as possible
    though there will always be (mostly minor) updates inbetween during the beta periodto verify bug fixes and enhancements with our customers.

    But we will try to minimize those builds.

    Best regards
    Frank

  6. itg-assistant commented on Jun 12, 2026

    @itg-assistant
    Author

    Alex Prinias answered 2016-09-06 19:07:34 UTC

    Thank you Frank!

    Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething is broken or behaving unexpectedly.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions