W
William
I have attached a column to a combobox, but I only get
System.Data.DataRowView in the combobox's item list. I double checked to
be sure that the table name and the column names are spelled correctly.
any suggestions?
My code:
daSelectResource.Fill( dsResourceGroup );
cboSelectResource.DataSource = dsResourceGroup.Tables[0];
cboSelectResource.DisplayMember = "ResourceDetails";
I am retrieving the value with:
string wholeRecord = cboSelectResource.SelectedItem.ToString();
// I have also tried cboSelectResource.Text;
any suggestions as to why:
1) System.Data.DataRowView is displayed as the entries in the combobox
2) wholeRecord has value System.Data.DataRowView?
Thanks.
System.Data.DataRowView in the combobox's item list. I double checked to
be sure that the table name and the column names are spelled correctly.
any suggestions?
My code:
daSelectResource.Fill( dsResourceGroup );
cboSelectResource.DataSource = dsResourceGroup.Tables[0];
cboSelectResource.DisplayMember = "ResourceDetails";
I am retrieving the value with:
string wholeRecord = cboSelectResource.SelectedItem.ToString();
// I have also tried cboSelectResource.Text;
any suggestions as to why:
1) System.Data.DataRowView is displayed as the entries in the combobox
2) wholeRecord has value System.Data.DataRowView?
Thanks.