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. C# bound column in datagridview

C# bound column in datagridview

Scheduled Pinned Locked Moved C#
csharpdatabasequestion
4 Posts 3 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.
  • J Offline
    J Offline
    John Malcosky
    wrote on last edited by
    #1

    Hi, I have a datagridview form with two columns that display a text value from a second table in the dataset and set an integer field in the target record based on the text field selected in a combobox. Those two fields display blanks, always. One can display the appropriate text values with the drop down, but nothing gets set. What's making me crazy is that that form, if pulled out of the project, made a standalone in its own project, hitting the same database, of identical dataset and everything else I can find, works fine. Any ideas? Thank you. John Malcosky

    G R 3 Replies Last reply
    0
    • J John Malcosky

      Hi, I have a datagridview form with two columns that display a text value from a second table in the dataset and set an integer field in the target record based on the text field selected in a combobox. Those two fields display blanks, always. One can display the appropriate text values with the drop down, but nothing gets set. What's making me crazy is that that form, if pulled out of the project, made a standalone in its own project, hitting the same database, of identical dataset and everything else I can find, works fine. Any ideas? Thank you. John Malcosky

      G Offline
      G Offline
      GuyThiebaut
      wrote on last edited by
      #2

      I am trying to understand what the issue is - everything is working fine so where is the issue :confused:

      “That which can be asserted without evidence, can be dismissed without evidence.”

      ― Christopher Hitchens

      1 Reply Last reply
      0
      • J John Malcosky

        Hi, I have a datagridview form with two columns that display a text value from a second table in the dataset and set an integer field in the target record based on the text field selected in a combobox. Those two fields display blanks, always. One can display the appropriate text values with the drop down, but nothing gets set. What's making me crazy is that that form, if pulled out of the project, made a standalone in its own project, hitting the same database, of identical dataset and everything else I can find, works fine. Any ideas? Thank you. John Malcosky

        G Offline
        G Offline
        GuyThiebaut
        wrote on last edited by
        #3

        The first thing I would do is to iterate through the source of the datagridview, outputting the results via a debug statement, to be sure that the columns do actually contain data.

        “That which can be asserted without evidence, can be dismissed without evidence.”

        ― Christopher Hitchens

        1 Reply Last reply
        0
        • J John Malcosky

          Hi, I have a datagridview form with two columns that display a text value from a second table in the dataset and set an integer field in the target record based on the text field selected in a combobox. Those two fields display blanks, always. One can display the appropriate text values with the drop down, but nothing gets set. What's making me crazy is that that form, if pulled out of the project, made a standalone in its own project, hitting the same database, of identical dataset and everything else I can find, works fine. Any ideas? Thank you. John Malcosky

          R Offline
          R Offline
          Rahul VB
          wrote on last edited by
          #4

          just a sec...my english is not so good :) let me rephrase every thing: - You have a datagridview with 2 columns. - Now this datagridview displays a text from a DataSet. (Till here its fine.)

          Quote:

          and set an integer field in the target record based on the text field selected in a combobox.

          - This is confusing:confused:

          Quote:

          One can display the appropriate text values with the drop down, but nothing gets set. What's making me crazy is that that form, if pulled out of the project, made a standalone in its own project, hitting the same database, of identical dataset and everything else I can find, works fine.

          You have clubbed so many things in just one sentence. Its hard to simulate what you are saying(It is also my lack of knowledge)but i request you to put forth a simpler version of this question. Thanks

          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