I am trying to do some validating, and when a certain TextBox is filled an accompanying value from a ComboBox should also be chosen. How can I check if a value from my ComboBox has been picked from its original state, which is nothing from the list of values?
Code:
if (this.txtCity != null) // *** TextBox is populated
{
try
{
if (this.comboStates.SelectedItem = "") // *** ComboBox not chosen
// display error message
...