Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. When binding to a DataGridView ComboBox I always get this error message!?

When binding to a DataGridView ComboBox I always get this error message!?

Scheduled Pinned Locked Moved C#
wpfwcfhelpquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tkrn
    wrote on last edited by
    #1

    "system.formatexception: datagridviewcomboboxcell value is not valid" DataTypes are correct, it selects the right data too. The selections are pulled from one table, the actual selected value is pulled from another. :confused: Any ideas?

    S 1 Reply Last reply
    0
    • T tkrn

      "system.formatexception: datagridviewcomboboxcell value is not valid" DataTypes are correct, it selects the right data too. The selections are pulled from one table, the actual selected value is pulled from another. :confused: Any ideas?

      S Offline
      S Offline
      SomeGuyThatIsMe
      wrote on last edited by
      #2

      <scarcasm> Millions not that you'd be interested. </scarcasm> hopefully someone will know where that line came from.

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      T 1 Reply Last reply
      0
      • S SomeGuyThatIsMe

        <scarcasm> Millions not that you'd be interested. </scarcasm> hopefully someone will know where that line came from.

        Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        T Offline
        T Offline
        tkrn
        wrote on last edited by
        #3

        I grabbed the error from the data grid and just canceled the exception. e.Cancel = true worked great! Probably not the best way to deal with it but I was reading something that I believe is the source of the issue here, http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=136972&SiteID=1[^]

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups