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