I'm wondering, what is better solution and why?
I suppose that the second one, as exception should be in the code just to handle errors and this is not an error (just the value is not in combo box)? Am I right? And is it the only reason? Or there's nothing wrong about both solutions?
Or is there another solution? Better than these two?
try
{
cbOwner.SelectedValue = whatever.toString();
}
catch (Exception ex)
{
}
or
if (cbOwner.Items.FindByValue(whatever.toString()) != null)
cbOwner.SelectedValue = whatever.toString();