public class ComboBoxItem
{
private string _text = null;
private object _value = null;
public string Text
{
get {
return this._text;
}
set {
this._text = value;
}
}
public object Value
{
get { return this._value;
}
set { this._value = value;
}
}
public override string ToString()
{
return this._text;
}
}
MessageBox.Show((string)((ComboBoxItem)cmbField.SelectedItem).Value);
参照:http://realzjy.blog.51cto.com/818594/165556