绑定到ValueMamber
的ComboBox
的List<string>
是什么?
我正在使用Windows窗体和.NET Framework 4。
cmbForms.DataSource = Forms;
cmbForms.ValueMember="System.String";
if (!string.IsNullOrWhiteSpace(PhotoDescription.Details.Form))
{
cmbForms.SelectedValue = PhotoDescription.Details.Form;
}
Forms
在哪里:
public List<string> Forms { get; set; }