Click here to Skip to main content
15,913,685 members
Home / Discussions / C#
   

C#

 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
swo.priv6-Mar-10 4:55
swo.priv6-Mar-10 4:55 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
OriginalGriff6-Mar-10 5:22
mveOriginalGriff6-Mar-10 5:22 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
swo.priv6-Mar-10 6:23
swo.priv6-Mar-10 6:23 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
OriginalGriff6-Mar-10 6:45
mveOriginalGriff6-Mar-10 6:45 
GeneralRe: protected and inheritance question (i think - yes I'm kind of new) Pin
swo.priv6-Mar-10 7:24
swo.priv6-Mar-10 7:24 
QuestionMessage Removed Pin
5-Mar-10 17:11
gouthami chintala5-Mar-10 17:11 
AnswerRe: how to count the frequencycount of a word in a text file Pin
Dr.Walt Fair, PE5-Mar-10 18:06
professionalDr.Walt Fair, PE5-Mar-10 18:06 
QuestionProblems with bound list source for DataGridViewComboBoxColumn Pin
Xpnctoc5-Mar-10 12:51
Xpnctoc5-Mar-10 12:51 
I have a data application that is using a DataSet via the designer.

I'm trying to create a form that binds data from one table "MyData". One of the fields "picker_fk" uses an FK relationship to a second table "Picker". "Picker" has only one field in it called "descript" (not null, unique).

In the form, I set up the DataGridView to use the DataSet.MyData table. For the combo box column, I set the following properties:

DataPropertyName = "picker_fk"
DataSource = bndPicker (a binding source that uses the "Picker" table from the DataSet)
DisplayMember = "descript"
ValueMember = "descript"

This is all good until I create a new row, select a value from the combo box, and then move focus away. I get a message:

SystemArgumentException: Column "descript" is not belong to table "Picker".

What's up with that? I'm looking right at the field in the DataSetDesigner. "descript" is the ONE AND ONLY field in "Picker". How can the debugger say it's not in there?

I dug around and found a suggestion that this error could occur with data type mismatches. But I have verified that both Picker.descript and the referencing MyData.picker_fk are both of type System.String.

Does anyone have any ideas?
AnswerRe: Problems with bound list source for DataGridViewComboBoxColumn Pin
Xpnctoc5-Mar-10 14:10
Xpnctoc5-Mar-10 14:10 
QuestionEnums, Intellisense, and switchs… Pin
Matthew Klein5-Mar-10 11:26
Matthew Klein5-Mar-10 11:26 
AnswerRe: Enums, Intellisense, and switchs…[modified] Pin
Dan Mos5-Mar-10 11:36
Dan Mos5-Mar-10 11:36 
GeneralRe: Enums, Intellisense, and switchs Pin
Matthew Klein5-Mar-10 11:55
Matthew Klein5-Mar-10 11:55 
JokeRe: Enums, Intellisense, and switchs Pin
Dan Mos5-Mar-10 11:57
Dan Mos5-Mar-10 11:57 
AnswerRe: Enums, Intellisense, and switchs… Pin
Luc Pattyn5-Mar-10 11:42
sitebuilderLuc Pattyn5-Mar-10 11:42 
AnswerRe: Enums, Intellisense, and switchs… Pin
harold aptroot5-Mar-10 11:45
harold aptroot5-Mar-10 11:45 
GeneralRe: Enums, Intellisense, and switchs… Pin
Dan Mos5-Mar-10 11:52
Dan Mos5-Mar-10 11:52 
GeneralRe: Enums, Intellisense, and switchs… Pin
harold aptroot5-Mar-10 11:55
harold aptroot5-Mar-10 11:55 
GeneralRe: Enums, Intellisense, and switchs… Pin
Dan Mos5-Mar-10 11:56
Dan Mos5-Mar-10 11:56 
GeneralRe: Enums, Intellisense, and switchs… Pin
Matthew Klein5-Mar-10 11:56
Matthew Klein5-Mar-10 11:56 
GeneralRe: Enums, Intellisense, and switchs… Pin
BryanWilkins5-Mar-10 11:58
professionalBryanWilkins5-Mar-10 11:58 
AnswerRe: Enums, Intellisense, and switchs… Pin
RCoate5-Mar-10 15:54
RCoate5-Mar-10 15:54 
AnswerRe: Enums, Intellisense, and switchs… Pin
#realJSOP6-Mar-10 1:06
professional#realJSOP6-Mar-10 1:06 
QuestionGDI Related issue - External Exception being thrown in System.Drawing.dll Pin
Eagle325-Mar-10 10:19
Eagle325-Mar-10 10:19 
Answercommon problem, standard answer Pin
Luc Pattyn5-Mar-10 10:27
sitebuilderLuc Pattyn5-Mar-10 10:27 
GeneralRe: common problem, standard answer Pin
Giorgi Dalakishvili6-Mar-10 2:51
mentorGiorgi Dalakishvili6-Mar-10 2:51 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.