We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
/* Create a new Customer */ Customer cust = new Customer("Joe", null); /* Add null value */ DataRow row = statesTable.NewRow(); /* Enter a null row (ComboBox will show blank) */ row["Name"] = ""; row["Code"] = DBNull.Value; /* Add the row to DataTable */ statesTable.Rows.Add(row); /* Bind the States ComboBox to the states DataTable */ this.statesCB.DisplayMember = "Name"; this.statesCB.ValueMember = "Code"; this.statesCB.DataSource = statesTable; /* Bind the ComboBox SelectedValue to the customer */ /* business object */ this.statesCB.DataBindings.Add("SelectedValue", cust, "StateID", true);
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.