I need to populate a combobox with values from a dataset. When running the code below, I recieve "Cannot bind to the new display member.Parameter name: newDisplayMember". Any suggestions?
DAL rating = new DAL();
DataSet ds = rating.getRatings("SELECT * FROM tblRating");
cboRating.DataSource = ds;
cboRating.DisplayMember = "Rating"; //Colunm name for display
cboRating.ValueMember = "RatingID"; //Primary key <----Error here