Why is something so simple, so time consuming?
Sorry for my rant, but I have been spending about a full week trying to figure out how to write three lines of code.
It is great that ...
[COLOR=#333333][FONT=Consolas]comboBoxColumn.DisplayMember = "Name";[/FONT][/COLOR]
[COLOR=#333333][FONT=Consolas]comboBoxColumn.ValueMember = "ID";[/FONT][/COLOR]
[COLOR=#333333][FONT=Consolas, Bitstream Vera Sans Mono, Courier New, Courier, monospace]comboBoxColumn.DataSource = myDataTable;
[/FONT]
[FONT=Verdana, Arial, Tahoma, Calibri, Geneva, sans-serif]But I am having a hard time relating this to the variable of ProjectNumber. I am also wondering where ID even comes in to play. It was my hope to do a query, connvert it to a list, and let those values be the values for by combobox datasource.
Note, in my online searching, this is a common question, but the answers are few.
It does seem that I could just go to my datagridview properties and select columns, and then pan to the ProjectNumber column, which is already a combobox. In there are:
Datasource, DisplayMember and ValueMamber, all None. The Items says Collection, but there is no data there. Wouldnt it just be cool if I could add my query list to the collection here?
I toyed around with changing the datasources, but nothing helped. The fact is, the tables are all setup in the TimeData dataset, pictured in all of my prior posts.
I am so sorry I am not seasoned at this, as I have never done it before. But I'm not so sure it's rocket science. What it shouold be is three or four lines of code. I do believe my query wil work.
What is the ValueMember?
What is the DisplayMember?
I have seen these things identified online, and some people thing one is the other and the other is the one, or vice versa.
Sorry if I have not been clear on this post. I have tried to include as much information as possible.
Thanks!
[/FONT][/COLOR]