Home > Net >  About the comboBox control SelectedValue property
About the comboBox control SelectedValue property

Time:05-21

My small white, there is now a comboBox

May I have a similar wrote
If (comboBox. SelectedValue="other" https://bbs.csdn.net/topics/
{
SQL +='... '
}

CodePudding user response:

If you set the comboBox value is design view one by one to fill in, behind you write right

If it is binding data sources, this is not recommended!

CodePudding user response:

Can, but you'd better don't do this, to the cbo assignment, the Value can be stored in the back of the as a key word, just in front of the display, so if you only front-end string, use SelectText directly

CodePudding user response:

This can not see your assignment zha tied

CodePudding user response:


=is an assignment==are you should use a comboBox. SelectedValue. ToString () to compare another string
  •  Tags:  
  • C#
  • Related