綁定到列表的組合框的成員值是什麼?我使用的WinForm應用和.NET Framework 4什麼是綁定到列表的組合框的值成員<string>
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; }
我想它應該是'System.String'。爲什麼不嘗試自己? –